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

# Exa: Get Agent Run

> Get the status and final output of a web research agent run you started earlier, by its run ID. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Get the status and final output of a web research agent run you started earlier, by its run ID.

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

## 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(
  'exa_get_agent_run',
  {
    "id": "id_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute exa_get_agent_run --input '{
  "id": "id_123"
}' --json
```

## 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": {
    "id": "id_123",
    "object": "example",
    "status": "queued"
  }
}
```

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

## Input reference

Exa Agent run lookup.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | Minimum length: 1. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Exa Agent run lookup.",
    "properties": {
      "id": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Exa Agent run lookup.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | No | — | — |
| `result.data.object` | `string` | No | — | — |
| `result.data.status` | `"queued" \| "running" \| "completed" \| "failed" \| "cancelled"` | No | — | Allowed: `queued`, `running`, `completed`, `failed`, `cancelled`. |
| `result.data.stopReason` | `"schema_satisfied" \| "budget_reached" \| "error" \| "cancelled" \| null` | No | — | Allowed: `schema_satisfied`, `budget_reached`, `error`, `cancelled`, `null`. |
| `result.data.createdAt` | `string` | No | — | — |
| `result.data.completedAt` | `string \| null` | No | — | — |
| `result.data.request` | `object \| null` | No | — | — |
| `result.data.output` | `object` | No | — | — |
| `result.data.output.text` | `string` | No | — | — |
| `result.data.output.structured` | `unknown \| null` | No | — | — |
| `result.data.output.grounding` | `array` | No | — | — |
| `result.meta` | `record` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Exa Agent run lookup.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "failed",
              "cancelled"
            ]
          },
          "stopReason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "schema_satisfied",
              "budget_reached",
              "error",
              "cancelled",
              null
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "request": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "output": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              },
              "structured": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "grounding": {
                "type": "array",
                "items": {}
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "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

* [Exa provider guide](https://deepline.com/docs/providers/exa/guide.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.