> ## 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 Collection Runs

> List runs for a collection. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

List runs for a collection.

<Info>
  Tool ID: `contextdev_list_webdb_collection_runs`
</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_collection_runs',
  {
    "collection_id": "collection_123"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute contextdev_list_webdb_collection_runs --input '{
  "collection_id": "collection_123"
}' --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get contextdev_list_webdb_collection_runs --json` for the complete live contract.

## Input reference

Returns recent runs for a collection.

| Name                    | Type      | Required | Default | Details                                                                                                                                                                                                                                   |
| ----------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.collection_id` | `string`  | Yes      | —       | Collection ID.                                                                                                                                                                                                                            |
| `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 recent runs for a collection.",
    "properties": {
      "collection_id": {
        "type": "string",
        "description": "Collection ID."
      },
      "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": [
      "collection_id"
    ],
    "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[].collection_id`             | `string`                                                                     | Yes      | —       | —                                                                          |
| `result.data.data[].status`                    | `"queued" \| "running" \| "completed" \| "partial" \| "failed" \| "skipped"` | Yes      | —       | Allowed: `queued`, `running`, `completed`, `partial`, `failed`, `skipped`. |
| `result.data.data[].trigger`                   | `"initial" \| "scheduled" \| "manual" \| "reprocess" \| "purge"`             | Yes      | —       | Allowed: `initial`, `scheduled`, `manual`, `reprocess`, `purge`.           |
| `result.data.data[].stats`                     | `object`                                                                     | Yes      | —       | —                                                                          |
| `result.data.data[].stats.pages_fetched`       | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.eligible`            | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.rejected`            | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.rows_created`        | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.rows_updated`        | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.rows_unchanged`      | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.rows_removed`        | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.rows_errored`        | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].stats.rows_capped`         | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].by_target`                 | `array`                                                                      | Yes      | —       | —                                                                          |
| `result.data.data[].by_target[].target_id`     | `string`                                                                     | Yes      | —       | —                                                                          |
| `result.data.data[].by_target[].coverage`      | `"full" \| "truncated"`                                                      | Yes      | —       | Allowed: `full`, `truncated`.                                              |
| `result.data.data[].by_target[].pages_fetched` | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].by_target[].errors`        | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].errors`                    | `array`                                                                      | Yes      | —       | —                                                                          |
| `result.data.data[].errors[].type`             | `string`                                                                     | Yes      | —       | —                                                                          |
| `result.data.data[].errors[].count`            | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].capped_url_count`          | `integer`                                                                    | Yes      | —       | —                                                                          |
| `result.data.data[].skip_reason`               | `"collection_paused" \| "superseded" \| null`                                | Yes      | —       | Allowed: `collection_paused`, `superseded`, `null`.                        |
| `result.data.data[].error`                     | `object \| null`                                                             | No       | —       | —                                                                          |
| `result.data.data[].error.code`                | `string`                                                                     | Yes      | —       | —                                                                          |
| `result.data.data[].error.message`             | `string`                                                                     | Yes      | —       | —                                                                          |
| `result.data.data[].started_at`                | `string \| null`                                                             | Yes      | —       | Format: `date-time`.                                                       |
| `result.data.data[].completed_at`              | `string \| null`                                                             | Yes      | —       | Format: `date-time`.                                                       |
| `result.data.data[].created_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"
                },
                "collection_id": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "queued",
                    "running",
                    "completed",
                    "partial",
                    "failed",
                    "skipped"
                  ]
                },
                "trigger": {
                  "type": "string",
                  "enum": [
                    "initial",
                    "scheduled",
                    "manual",
                    "reprocess",
                    "purge"
                  ]
                },
                "stats": {
                  "type": "object",
                  "properties": {
                    "pages_fetched": {
                      "type": "integer"
                    },
                    "eligible": {
                      "type": "integer"
                    },
                    "rejected": {
                      "type": "integer"
                    },
                    "rows_created": {
                      "type": "integer"
                    },
                    "rows_updated": {
                      "type": "integer"
                    },
                    "rows_unchanged": {
                      "type": "integer"
                    },
                    "rows_removed": {
                      "type": "integer"
                    },
                    "rows_errored": {
                      "type": "integer"
                    },
                    "rows_capped": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "pages_fetched",
                    "eligible",
                    "rejected",
                    "rows_created",
                    "rows_updated",
                    "rows_unchanged",
                    "rows_removed",
                    "rows_errored",
                    "rows_capped"
                  ],
                  "additionalProperties": false
                },
                "by_target": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "target_id": {
                        "type": "string"
                      },
                      "coverage": {
                        "type": "string",
                        "enum": [
                          "full",
                          "truncated"
                        ]
                      },
                      "pages_fetched": {
                        "type": "integer"
                      },
                      "errors": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "target_id",
                      "coverage",
                      "pages_fetched",
                      "errors"
                    ],
                    "additionalProperties": false
                  }
                },
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "count": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "type",
                      "count"
                    ],
                    "additionalProperties": false
                  }
                },
                "capped_url_count": {
                  "type": "integer"
                },
                "skip_reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "collection_paused",
                    "superseded",
                    null
                  ]
                },
                "error": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "additionalProperties": false
                },
                "started_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "completed_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "collection_id",
                "status",
                "trigger",
                "stats",
                "by_target",
                "errors",
                "capped_url_count",
                "skip_reason",
                "started_at",
                "completed_at",
                "created_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)
