> ## 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 Get Batch Results

> Get batch results. Context.dev Contextdev Get Batch Results reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get batch results.

<Info>
  Tool ID: `contextdev_get_batch_results`
</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_get_batch_results',
  {
    "batch_id": "batch_123"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute contextdev_get_batch_results --input '{
  "batch_id": "batch_123"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "data": [
      {}
    ],
    "has_more": true,
    "next_cursor": "cursor_123"
  }
}
```

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

## Input reference

Page through a finished batch's results as JSON instead of downloading the NDJSON files.

| Name               | Type      | Required | Default | Details                                                                                                                                                                  |
| ------------------ | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.batch_id` | `string`  | Yes      | —       | ID of the batch to retrieve or cancel.                                                                                                                                   |
| `payload.limit`    | `integer` | No       | —       | Records per page. Defaults to 25. A page can close early so its payload stays under \~8 MB; rely on next\_cursor rather than counting records. Minimum: 1. Maximum: 100. |
| `payload.cursor`   | `string`  | No       | —       | next\_cursor from the previous page.                                                                                                                                     |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Page through a finished batch's results as JSON instead of downloading the NDJSON files.",
    "properties": {
      "batch_id": {
        "type": "string",
        "description": "ID of the batch to retrieve or cancel."
      },
      "limit": {
        "type": "integer",
        "description": "Records per page. Defaults to 25. A page can close early so its payload stays under ~8 MB; rely on next_cursor rather than counting records.",
        "minimum": 1,
        "maximum": 100
      },
      "cursor": {
        "type": "string",
        "description": "next_cursor from the previous page."
      }
    },
    "required": [
      "batch_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name                       | Type             | Required | Default | Details |
| -------------------------- | ---------------- | -------- | ------- | ------- |
| `result.data`              | `object`         | Yes      | —       | —       |
| `result.data.data`         | `array`          | No       | —       | —       |
| `result.data.has_more`     | `boolean`        | No       | —       | —       |
| `result.data.next_cursor`  | `string \| null` | No       | —       | —       |
| `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",
              "additionalProperties": true
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "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)
