> ## 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 one web monitor's past runs with status, timing, and changes found. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List one web monitor's past runs with status, timing, and changes found.

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

## 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_monitor_runs',
  {
    "monitor_id": "monitor_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute contextdev_list_monitor_runs --input '{
  "monitor_id": "monitor_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": {
    "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 describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](https://deepline.com/docs/providers/contextdev/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.