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

> Get a web change monitor's settings, status, schedule, and current baseline by monitor ID. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Get a web change monitor's settings, status, schedule, and current baseline by monitor ID.

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

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

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute contextdev_get_monitor --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": {
    "mode": "web",
    "id": "id_123",
    "name": "Example",
    "target": {},
    "change_detection": {},
    "schedule": {},
    "status": "active",
    "created_at": "2026-01-15T12:00:00Z",
    "updated_at": "2026-01-15T12:00:00Z"
  }
}
```

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

## Input reference

Fetch a monitor's full configuration, status, schedule, and current baseline by ID.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.monitor_id` | `string` | Yes | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Fetch a monitor's full configuration, status, schedule, and current baseline by ID.",
    "properties": {
      "monitor_id": {
        "type": "string"
      }
    },
    "required": [
      "monitor_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.mode` | `"web"` | Yes | — | Allowed: `web`. |
| `result.data.id` | `string` | Yes | — | — |
| `result.data.name` | `string` | Yes | — | — |
| `result.data.target` | `record` | Yes | — | — |
| `result.data.change_detection` | `record` | Yes | — | — |
| `result.data.schedule` | `record` | Yes | — | — |
| `result.data.webhook` | `object \| null` | No | — | — |
| `result.data.webhook.url` | `string` | Yes | — | Format: `uri`. |
| `result.data.webhook.events` | `array` | No | — | Minimum items: 1. Maximum items: 2. Items must be unique. |
| `result.data.status` | `"active" \| "paused" \| "failed"` | Yes | — | Allowed: `active`, `paused`, `failed`. |
| `result.data.last_run_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.last_change_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.next_run_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.last_error` | `object \| null` | No | — | — |
| `result.data.last_error.code` | `string` | Yes | — | — |
| `result.data.last_error.message` | `string` | Yes | — | — |
| `result.data.webhook_failure` | `object \| null` | No | — | — |
| `result.data.webhook_failure.consecutive_failures` | `integer` | Yes | — | Minimum: 1. |
| `result.data.webhook_failure.last_status` | `"rejected" \| "failed" \| "skipped_unsafe_url"` | Yes | — | Allowed: `rejected`, `failed`, `skipped_unsafe_url`. |
| `result.data.webhook_failure.last_message` | `string` | Yes | — | — |
| `result.data.webhook_failure.last_failed_at` | `string` | Yes | — | Format: `date-time`. |
| `result.data.created_at` | `string` | Yes | — | Format: `date-time`. |
| `result.data.updated_at` | `string` | Yes | — | Format: `date-time`. |
| `result.data.tags` | `array` | No | — | Maximum items: 20. Items must be unique. |
| `result.data.baseline` | `record` | No | — | — |
| `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": {
          "mode": {
            "type": "string",
            "enum": [
              "web"
            ]
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "target": {
            "type": "object",
            "additionalProperties": true
          },
          "change_detection": {
            "type": "object",
            "additionalProperties": true
          },
          "schedule": {
            "type": "object",
            "additionalProperties": true
          },
          "webhook": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "events": {
                "type": "array",
                "minItems": 1,
                "maxItems": 2,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "enum": [
                    "change.detected",
                    "run.completed"
                  ]
                }
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": false
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "failed"
            ]
          },
          "last_run_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_change_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "next_run_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          },
          "webhook_failure": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "consecutive_failures": {
                "type": "integer",
                "minimum": 1
              },
              "last_status": {
                "type": "string",
                "enum": [
                  "rejected",
                  "failed",
                  "skipped_unsafe_url"
                ]
              },
              "last_message": {
                "type": "string"
              },
              "last_failed_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "consecutive_failures",
              "last_status",
              "last_message",
              "last_failed_at"
            ],
            "additionalProperties": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "tags": {
            "type": "array",
            "maxItems": 20,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 50
            }
          },
          "baseline": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "mode",
          "id",
          "name",
          "target",
          "change_detection",
          "schedule",
          "status",
          "created_at",
          "updated_at"
        ],
        "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.