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

> List monitor runs. Context.dev Contextdev List Monitor Runs reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List monitor runs.

<Info>
  Tool ID: `contextdev_list_monitor_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_monitor_runs',
  {
    "monitor_id": "monitor_123"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute contextdev_list_monitor_runs --input '{
  "monitor_id": "monitor_123"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "data": [
      {
        "id": "id_123",
        "monitor_id": "monitor_123",
        "status": "queued",
        "run_type": "baseline",
        "target_type": "page",
        "change_detection_type": "exact",
        "change_detected": true,
        "baseline_created": true
      }
    ],
    "has_more": true,
    "next_cursor": "cursor_123"
  }
}
```

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

## Input reference

List a monitor's run history with status, timing, and detected changes.

| Name                 | Type                                                            | Required | Default | Details                                                                                          |
| -------------------- | --------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------ |
| `payload.monitor_id` | `string`                                                        | Yes      | —       | —                                                                                                |
| `payload.status`     | `"queued" \| "running" \| "completed" \| "failed" \| "skipped"` | No       | —       | Filter runs by lifecycle status. Allowed: `queued`, `running`, `completed`, `failed`, `skipped`. |
| `payload.limit`      | `integer`                                                       | No       | —       | Maximum number of items to return per page (1-100). Defaults to 25. Minimum: 1. Maximum: 100.    |
| `payload.cursor`     | `string`                                                        | No       | —       | Opaque pagination cursor from a previous response.                                               |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "List a monitor's run history with status, timing, and detected changes.",
    "properties": {
      "monitor_id": {
        "type": "string"
      },
      "status": {
        "type": "string",
        "description": "Filter runs by lifecycle status.",
        "enum": [
          "queued",
          "running",
          "completed",
          "failed",
          "skipped"
        ]
      },
      "limit": {
        "type": "integer",
        "description": "Maximum number of items to return per page (1-100). Defaults to 25.",
        "minimum": 1,
        "maximum": 100
      },
      "cursor": {
        "type": "string",
        "description": "Opaque pagination cursor from a previous response."
      }
    },
    "required": [
      "monitor_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[].monitor_id`                         | `string`                                                        | Yes      | —       | —                                                                 |
| `result.data.data[].status`                             | `"queued" \| "running" \| "completed" \| "failed" \| "skipped"` | Yes      | —       | Allowed: `queued`, `running`, `completed`, `failed`, `skipped`.   |
| `result.data.data[].run_type`                           | `"baseline" \| "scheduled"`                                     | Yes      | —       | Allowed: `baseline`, `scheduled`.                                 |
| `result.data.data[].target_type`                        | `"page" \| "sitemap" \| "extract"`                              | Yes      | —       | Allowed: `page`, `sitemap`, `extract`.                            |
| `result.data.data[].change_detection_type`              | `"exact" \| "semantic"`                                         | Yes      | —       | Allowed: `exact`, `semantic`.                                     |
| `result.data.data[].started_at`                         | `string \| null`                                                | No       | —       | Format: `date-time`.                                              |
| `result.data.data[].completed_at`                       | `string \| null`                                                | No       | —       | Format: `date-time`.                                              |
| `result.data.data[].change_detected`                    | `boolean`                                                       | Yes      | —       | —                                                                 |
| `result.data.data[].change_id`                          | `string \| null`                                                | No       | —       | —                                                                 |
| `result.data.data[].baseline_created`                   | `boolean`                                                       | Yes      | —       | —                                                                 |
| `result.data.data[].skip_reason`                        | `"monitor_paused" \| "superseded" \| null`                      | No       | —       | Allowed: `monitor_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[].webhook_delivery`                   | `object`                                                        | No       | —       | —                                                                 |
| `result.data.data[].webhook_delivery.event_id`          | `string`                                                        | Yes      | —       | —                                                                 |
| `result.data.data[].webhook_delivery.event`             | `"change.detected" \| "run.completed"`                          | Yes      | —       | Allowed: `change.detected`, `run.completed`.                      |
| `result.data.data[].webhook_delivery.status`            | `"delivered" \| "rejected" \| "failed" \| "skipped_unsafe_url"` | Yes      | —       | Allowed: `delivered`, `rejected`, `failed`, `skipped_unsafe_url`. |
| `result.data.data[].webhook_delivery.http_status`       | `integer \| null`                                               | Yes      | —       | Minimum: 100. Maximum: 599.                                       |
| `result.data.data[].webhook_delivery.attempted_at`      | `string`                                                        | Yes      | —       | Format: `date-time`.                                              |
| `result.data.data[].webhook_delivery.error`             | `object \| null`                                                | Yes      | —       | —                                                                 |
| `result.data.data[].webhook_delivery.error.code`        | `string`                                                        | Yes      | —       | —                                                                 |
| `result.data.data[].webhook_delivery.error.message`     | `string`                                                        | Yes      | —       | —                                                                 |
| `result.data.data[].webhook_deliveries`                 | `array`                                                         | No       | —       | —                                                                 |
| `result.data.data[].webhook_deliveries[].event_id`      | `string`                                                        | Yes      | —       | —                                                                 |
| `result.data.data[].webhook_deliveries[].event`         | `"change.detected" \| "run.completed"`                          | Yes      | —       | Allowed: `change.detected`, `run.completed`.                      |
| `result.data.data[].webhook_deliveries[].status`        | `"delivered" \| "rejected" \| "failed" \| "skipped_unsafe_url"` | Yes      | —       | Allowed: `delivered`, `rejected`, `failed`, `skipped_unsafe_url`. |
| `result.data.data[].webhook_deliveries[].http_status`   | `integer \| null`                                               | Yes      | —       | Minimum: 100. Maximum: 599.                                       |
| `result.data.data[].webhook_deliveries[].attempted_at`  | `string`                                                        | Yes      | —       | Format: `date-time`.                                              |
| `result.data.data[].webhook_deliveries[].error`         | `object \| null`                                                | Yes      | —       | —                                                                 |
| `result.data.data[].webhook_deliveries[].error.code`    | `string`                                                        | Yes      | —       | —                                                                 |
| `result.data.data[].webhook_deliveries[].error.message` | `string`                                                        | Yes      | —       | —                                                                 |
| `result.data.has_more`                                  | `boolean`                                                       | Yes      | —       | —                                                                 |
| `result.data.next_cursor`                               | `string \| null`                                                | Yes      | —       | —                                                                 |
| `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"
                },
                "monitor_id": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "queued",
                    "running",
                    "completed",
                    "failed",
                    "skipped"
                  ]
                },
                "run_type": {
                  "type": "string",
                  "enum": [
                    "baseline",
                    "scheduled"
                  ]
                },
                "target_type": {
                  "type": "string",
                  "enum": [
                    "page",
                    "sitemap",
                    "extract"
                  ]
                },
                "change_detection_type": {
                  "type": "string",
                  "enum": [
                    "exact",
                    "semantic"
                  ]
                },
                "started_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "completed_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "change_detected": {
                  "type": "boolean"
                },
                "change_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "baseline_created": {
                  "type": "boolean"
                },
                "skip_reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "monitor_paused",
                    "superseded",
                    null
                  ]
                },
                "error": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "additionalProperties": false
                },
                "webhook_delivery": {
                  "type": "object",
                  "properties": {
                    "event_id": {
                      "type": "string"
                    },
                    "event": {
                      "type": "string",
                      "enum": [
                        "change.detected",
                        "run.completed"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "delivered",
                        "rejected",
                        "failed",
                        "skipped_unsafe_url"
                      ]
                    },
                    "http_status": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 100,
                      "maximum": 599
                    },
                    "attempted_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "event_id",
                    "event",
                    "status",
                    "http_status",
                    "attempted_at",
                    "error"
                  ],
                  "additionalProperties": false
                },
                "webhook_deliveries": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "event_id": {
                        "type": "string"
                      },
                      "event": {
                        "type": "string",
                        "enum": [
                          "change.detected",
                          "run.completed"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "delivered",
                          "rejected",
                          "failed",
                          "skipped_unsafe_url"
                        ]
                      },
                      "http_status": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 100,
                        "maximum": 599
                      },
                      "attempted_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "error": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "code",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "event_id",
                      "event",
                      "status",
                      "http_status",
                      "attempted_at",
                      "error"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "monitor_id",
                "status",
                "run_type",
                "target_type",
                "change_detection_type",
                "change_detected",
                "baseline_created"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "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)
