> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Context.dev: Contextdev List Webdb Collections

> List collections. Context.dev Contextdev List Webdb Collections reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline.

List collections.

<Info>
  Tool ID: `contextdev_list_webdb_collections`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_list_webdb_collections',
  {
    "limit": 100,
    "cursor": "cursor_123",
    "tags": [
      "example"
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute contextdev_list_webdb_collections --input '{
  "limit": 100,
  "cursor": "cursor_123",
  "tags": [
    "example"
  ]
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "data": [
      {
        "id": "id_123",
        "name": "Example",
        "schema": {},
        "eligibility": {
          "prefilter": {}
        },
        "targets": [
          {}
        ],
        "sync": {
          "every": "example"
        },
        "change_tracking": {
          "enabled": true
        },
        "budgets": {},
        "on_disappear": "soft_delete",
        "stale_after": 123,
        "status": "active",
        "next_sync_at": "2026-01-15T12:00:00Z",
        "last_run_at": "2026-01-15T12:00:00Z",
        "last_error": {
          "code": "example",
          "message": "Example message"
        },
        "row_count": 123,
        "sync_count": 123,
        "created_at": "2026-01-15T12:00:00Z",
        "updated_at": "2026-01-15T12:00:00Z"
      }
    ],
    "has_more": true,
    "next_cursor": "cursor_123"
  }
}
```

Use `deepline tools get contextdev_list_webdb_collections --json` for the latest machine-readable contract.

## Input reference

Returns your WebDB collections.

| Name             | Type      | Required | Default | Details                                                                                                                                                                                                                                   |
| ---------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.limit`  | `integer` | No       | —       | Maximum items to return. Defaults to 25. Minimum: 1. Maximum: 100.                                                                                                                                                                        |
| `payload.cursor` | `string`  | No       | —       | Pagination cursor from a previous response.                                                                                                                                                                                               |
| `payload.tags`   | `array`   | No       | —       | Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters. Maximum items: 20. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Returns your WebDB collections.",
    "properties": {
      "limit": {
        "type": "integer",
        "description": "Maximum items to return. Defaults to 25.",
        "minimum": 1,
        "maximum": 100
      },
      "cursor": {
        "type": "string",
        "description": "Pagination cursor from a previous response."
      },
      "tags": {
        "type": "array",
        "description": "Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
        "maxItems": 20,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name                                                        | Type                                       | Required | Default | Details                                        |
| ----------------------------------------------------------- | ------------------------------------------ | -------- | ------- | ---------------------------------------------- |
| `result.data`                                               | `object`                                   | Yes      | —       | —                                              |
| `result.data.data`                                          | `array`                                    | Yes      | —       | —                                              |
| `result.data.data[].id`                                     | `string`                                   | Yes      | —       | —                                              |
| `result.data.data[].name`                                   | `string`                                   | Yes      | —       | —                                              |
| `result.data.data[].description`                            | `string \| null`                           | No       | —       | —                                              |
| `result.data.data[].schema`                                 | `record`                                   | Yes      | —       | —                                              |
| `result.data.data[].eligibility`                            | `object \| null`                           | Yes      | —       | —                                              |
| `result.data.data[].eligibility.prefilter`                  | `object`                                   | No       | —       | —                                              |
| `result.data.data[].eligibility.prefilter.url_match`        | `array`                                    | No       | —       | Maximum items: 50.                             |
| `result.data.data[].eligibility.prefilter.must_contain_any` | `array`                                    | No       | —       | Maximum items: 50.                             |
| `result.data.data[].eligibility.prefilter.must_not_contain` | `array`                                    | No       | —       | Maximum items: 50.                             |
| `result.data.data[].eligibility.semantic`                   | `object`                                   | No       | —       | —                                              |
| `result.data.data[].eligibility.semantic.condition`         | `string`                                   | Yes      | —       | Minimum length: 1. Maximum length: 4000.       |
| `result.data.data[].eligibility.semantic.min_score`         | `number`                                   | No       | —       | Minimum: 0. Maximum: 1.                        |
| `result.data.data[].targets`                                | `array`                                    | Yes      | —       | —                                              |
| `result.data.data[].sync`                                   | `object`                                   | Yes      | —       | —                                              |
| `result.data.data[].sync.every`                             | `string`                                   | Yes      | —       | —                                              |
| `result.data.data[].sync.mode`                              | `"incremental" \| "full"`                  | No       | —       | Allowed: `incremental`, `full`.                |
| `result.data.data[].change_tracking`                        | `object`                                   | Yes      | —       | —                                              |
| `result.data.data[].change_tracking.enabled`                | `boolean`                                  | Yes      | —       | —                                              |
| `result.data.data[].change_tracking.granularity`            | `"field"`                                  | No       | —       | Allowed: `field`.                              |
| `result.data.data[].change_tracking.retention`              | `string`                                   | No       | —       | Pattern: `^(\d+)(s\|m\|h\|d)$`.                |
| `result.data.data[].budgets`                                | `object \| null`                           | Yes      | —       | —                                              |
| `result.data.data[].on_disappear`                           | `"soft_delete" \| "hard_delete" \| "keep"` | Yes      | —       | Allowed: `soft_delete`, `hard_delete`, `keep`. |
| `result.data.data[].stale_after`                            | `integer`                                  | Yes      | —       | —                                              |
| `result.data.data[].status`                                 | `"active" \| "paused" \| "failed"`         | Yes      | —       | Allowed: `active`, `paused`, `failed`.         |
| `result.data.data[].next_sync_at`                           | `string \| null`                           | Yes      | —       | Format: `date-time`.                           |
| `result.data.data[].last_run_at`                            | `string \| null`                           | Yes      | —       | Format: `date-time`.                           |
| `result.data.data[].last_error`                             | `object \| null`                           | Yes      | —       | —                                              |
| `result.data.data[].last_error.code`                        | `string`                                   | Yes      | —       | —                                              |
| `result.data.data[].last_error.message`                     | `string`                                   | Yes      | —       | —                                              |
| `result.data.data[].row_count`                              | `integer`                                  | Yes      | —       | —                                              |
| `result.data.data[].sync_count`                             | `integer`                                  | Yes      | —       | —                                              |
| `result.data.data[].created_at`                             | `string`                                   | Yes      | —       | Format: `date-time`.                           |
| `result.data.data[].updated_at`                             | `string`                                   | Yes      | —       | Format: `date-time`.                           |
| `result.data.has_more`                                      | `boolean`                                  | Yes      | —       | —                                              |
| `result.data.next_cursor`                                   | `string \| null`                           | Yes      | —       | —                                              |
| `result.data.key_metadata`                                  | `object`                                   | No       | —       | —                                              |
| `result.meta`                                               | `object`                                   | No       | —       | —                                              |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "eligibility": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "prefilter": {
                      "type": "object",
                      "properties": {
                        "url_match": {
                          "type": "array",
                          "maxItems": 50,
                          "items": {
                            "type": "string"
                          }
                        },
                        "must_contain_any": {
                          "type": "array",
                          "maxItems": 50,
                          "items": {
                            "type": "string"
                          }
                        },
                        "must_not_contain": {
                          "type": "array",
                          "maxItems": 50,
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "semantic": {
                      "type": "object",
                      "properties": {
                        "condition": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4000
                        },
                        "min_score": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "condition"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "targets": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": true
                  }
                },
                "sync": {
                  "type": "object",
                  "properties": {
                    "every": {
                      "type": "string"
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "incremental",
                        "full"
                      ]
                    }
                  },
                  "required": [
                    "every"
                  ],
                  "additionalProperties": false
                },
                "change_tracking": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "granularity": {
                      "type": "string",
                      "enum": [
                        "field"
                      ]
                    },
                    "retention": {
                      "type": "string",
                      "pattern": "^(\\d+)(s|m|h|d)$"
                    }
                  },
                  "required": [
                    "enabled"
                  ],
                  "additionalProperties": false
                },
                "budgets": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {},
                  "additionalProperties": false
                },
                "on_disappear": {
                  "type": "string",
                  "enum": [
                    "soft_delete",
                    "hard_delete",
                    "keep"
                  ]
                },
                "stale_after": {
                  "type": "integer"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "paused",
                    "failed"
                  ]
                },
                "next_sync_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "last_run_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "last_error": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "additionalProperties": false
                },
                "row_count": {
                  "type": "integer"
                },
                "sync_count": {
                  "type": "integer"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "name",
                "schema",
                "eligibility",
                "targets",
                "sync",
                "change_tracking",
                "budgets",
                "on_disappear",
                "stale_after",
                "status",
                "next_sync_at",
                "last_run_at",
                "last_error",
                "row_count",
                "sync_count",
                "created_at",
                "updated_at"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Context.dev provider guide](/docs/providers/contextdev/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
