> ## 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 Batches

> List your Context.dev scraping batches, newest first, optionally filtered by status. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List your Context.dev scraping batches, newest first, optionally filtered by status.

> [!NOTE]
>
> Tool ID: `contextdev_list_batches`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_list_batches',
  {
    "shouldIncludeUnified": false,
    "limit": 25,
    "cursor": "cursor_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run contextdev_list_batches --input '{
  "shouldIncludeUnified": false,
  "limit": 25,
  "cursor": "cursor_123"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "request_id": "123e4567-e89b-42d3-a456-426614174000"
  }
}
```

Use `deepline describe contextdev_list_batches --json` for the latest machine-readable contract.

## Input reference

List your batches, newest first, with optional filters.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.shouldIncludeUnified` | `boolean` | No | `false` | Include batches submitted with Scrape Anything formats. Defaults to false. |
| `payload.limit` | `integer` | No | `25` | Batches per page. Defaults to 25. Minimum: 1. Maximum: 100. |
| `payload.cursor` | `string` | No | — | Cursor from the previous page. |
| `payload.status` | `"pending" \| "queued" \| "running" \| "cancelling" \| "completed" \| "cancelled" \| "failed"` | No | — | Filter by status. Allowed: `pending`, `queued`, `running`, `cancelling`, `completed`, `cancelled`, `failed`. |
| `payload.q` | `string` | No | — | Free-text search term, matched against the batch id, crawl source (start URL or sitemap domain), and tags. Maximum length: 200. |
| `payload.search_type` | `"exact" \| "prefix"` | No | — | `prefix` for as-you-type prefix matching (default), `exact` for full-token matching. Allowed: `exact`, `prefix`. |
| `payload.tags` | `string \| array` | No | — | Tags to filter by (matches batches having any of them). Pass repeated `tags` params or one comma-separated list, e.g. `tags=docs,competitor`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "List your batches, newest first, with optional filters.",
    "properties": {
      "shouldIncludeUnified": {
        "type": "boolean",
        "description": "Include batches submitted with Scrape Anything formats. Defaults to false.",
        "default": false
      },
      "limit": {
        "type": "integer",
        "description": "Batches per page. Defaults to 25.",
        "default": 25,
        "minimum": 1,
        "maximum": 100
      },
      "cursor": {
        "type": "string",
        "description": "Cursor from the previous page."
      },
      "status": {
        "type": "string",
        "description": "Filter by status.",
        "enum": [
          "pending",
          "queued",
          "running",
          "cancelling",
          "completed",
          "cancelled",
          "failed"
        ]
      },
      "q": {
        "type": "string",
        "description": "Free-text search term, matched against the batch id, crawl source (start URL or sitemap domain), and tags.",
        "maxLength": 200
      },
      "search_type": {
        "type": "string",
        "description": "`prefix` for as-you-type prefix matching (default), `exact` for full-token matching.",
        "enum": [
          "exact",
          "prefix"
        ]
      },
      "tags": {
        "description": "Tags to filter by (matches batches having any of them). Pass repeated `tags` params or one comma-separated list, e.g. `tags=docs,competitor`.",
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.data` | `array` | No | — | — |
| `result.data.data[].id` | `string` | Yes | — | — |
| `result.data.data[].status` | `"pending" \| "queued" \| "running" \| "cancelling" \| "completed" \| "cancelled" \| "failed"` | Yes | — | Allowed: `pending`, `queued`, `running`, `cancelling`, `completed`, `cancelled`, `failed`. |
| `result.data.data[].mode` | `"scrape" \| "crawl"` | Yes | — | Allowed: `scrape`, `crawl`. |
| `result.data.data[].tags` | `array` | Yes | — | — |
| `result.data.data[].crawl` | `object \| null` | Yes | — | — |
| `result.data.data[].crawl.source` | `object` | Yes | — | — |
| `result.data.data[].crawl.source.type` | `"start_url"` | Yes | — | — |
| `result.data.data[].crawl.source.url` | `string` | Yes | — | — |
| `result.data.data[].crawl.source.domain` | `string` | Yes | — | — |
| `result.data.data[].crawl.max_pages` | `integer` | Yes | — | — |
| `result.data.data[].crawl.max_depth` | `integer \| null` | Yes | — | — |
| `result.data.data[].crawl.follow_subdomains` | `boolean` | Yes | — | — |
| `result.data.data[].crawl.url_pattern` | `string \| null` | Yes | — | — |
| `result.data.data[].crawl.exclude_url_pattern` | `string \| null` | Yes | — | — |
| `result.data.data[].crawl.languages` | `"same_as_start_url" \| array \| null` | Yes | — | — |
| `result.data.data[].input` | `object` | Yes | — | — |
| `result.data.data[].input.reserved` | `integer` | Yes | — | — |
| `result.data.data[].input.reserved_is_ceiling` | `boolean` | Yes | — | — |
| `result.data.data[].input.submitted` | `integer \| null` | Yes | — | — |
| `result.data.data[].input.duplicates` | `integer` | Yes | — | — |
| `result.data.data[].input.invalid` | `integer \| null` | Yes | — | — |
| `result.data.data[].progress` | `object` | Yes | — | — |
| `result.data.data[].progress.succeeded` | `integer` | Yes | — | — |
| `result.data.data[].progress.failed` | `integer` | Yes | — | — |
| `result.data.data[].progress.pending` | `integer` | Yes | — | — |
| `result.data.data[].timing` | `object` | Yes | — | — |
| `result.data.data[].timing.created_at` | `string` | Yes | — | — |
| `result.data.data[].timing.started_at` | `string \| null` | Yes | — | — |
| `result.data.data[].timing.completed_at` | `string \| null` | Yes | — | — |
| `result.data.data[].page_errors` | `array` | Yes | — | — |
| `result.data.data[].page_errors[].code` | `string` | Yes | — | — |
| `result.data.data[].page_errors[].count` | `integer` | Yes | — | — |
| `result.data.data[].failure` | `object \| null` | Yes | — | — |
| `result.data.data[].failure.code` | `string` | Yes | — | — |
| `result.data.data[].failure.message` | `string` | Yes | — | — |
| `result.data.data[].results` | `object \| null` | Yes | — | — |
| `result.data.data[].results.expires_at` | `string` | Yes | — | — |
| `result.data.data[].results.files` | `array` | Yes | — | — |
| `result.data.data[].results.files[].url` | `string` | Yes | — | — |
| `result.data.data[].results.files[].items` | `integer` | Yes | — | — |
| `result.data.data[].results.files[].bytes` | `integer` | Yes | — | — |
| `result.data.data[].formats` | `object` | Yes | — | — |
| `result.data.data[].formats.html` | `boolean` | No | — | — |
| `result.data.data[].formats.markdown` | `boolean` | No | — | — |
| `result.data.data[].formats.screenshot` | `boolean` | No | — | — |
| `result.data.data[].formats.images` | `boolean` | No | — | — |
| `result.data.data[].formats.bytes` | `boolean` | No | — | — |
| `result.data.data[].formats.parse` | `boolean` | No | — | — |

The table shows the first 50 fields. Expand the raw schema below for every field.

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe contextdev_list_batches --json`.

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

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.