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

> Watch a web page, sitemap, or extracted data for changes on a schedule, with an optional webhook alert. Includes SDK V2 examples, schemas, and cost.

Watch a web page, sitemap, or extracted data for changes on a schedule, with an optional webhook alert.

> [!NOTE]
>
> Tool ID: `contextdev_create_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_create_monitor',
  {
    "name": "Example",
    "target": {
      "type": "page",
      "url": "https://example.com/resource"
    }
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run contextdev_create_monitor --input '{
  "name": "Example",
  "target": {
    "type": "page",
    "url": "https://example.com/resource"
  }
}'
```

## 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": {},
    "status": "active",
    "created_at": "2026-01-15T12:00:00Z",
    "updated_at": "2026-01-15T12:00:00Z",
    "initial_run_id": "initial_run_123",
    "request_id": "123e4567-e89b-42d3-a456-426614174000"
  }
}
```

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

## Input reference

Monitor target, detection method, and schedule. Omitted schedules run daily.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.mode` | `"web"` | No | — | Always `web`. Optional. Allowed: `web`. |
| `payload.name` | `string` | Yes | — | Display name for the monitor. Minimum length: 1. Maximum length: 200. |
| `payload.tags` | `array` | No | — | Labels for filtering monitors, their changes, and their usage. Maximum items: 20. Items must be unique. |
| `payload.target` | `object` | Yes | — | What to watch: a page, a sitemap, data extracted from a site, or web search results. |
| `payload.change_detection` | `object` | No | — | How changes are judged. Defaults to `semantic` for extract and search targets and page targets with `instructions`, otherwise `exact`. |
| `payload.schedule` | `object` | No | — | How often the monitor runs. Defaults to once a day. |
| `payload.webhook` | `object` | No | — | Webhook destination and delivery settings. Null means no webhook is configured. |

> [!NOTE]
>
> This input schema is too large for an inline display. Read the complete live contract with `deepline describe contextdev_create_monitor --json`.

## 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` | No | — | — |
| `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.webhook.retry` | `object` | No | — | — |
| `result.data.webhook.retry.delays_seconds` | `array` | No | — | Maximum items: 10. |
| `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.data.initial_run_id` | `string \| null` | Yes | — | — |
| `result.data.policies` | `array` | No | — | — |
| `result.data.key_metadata` | `object` | No | — | — |
| `result.data.request_id` | `string` | Yes | — | Format: `uuid`. |
| `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"
                  ]
                }
              },
              "retry": {
                "type": "object",
                "properties": {
                  "delays_seconds": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 86400
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "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
          },
          "initial_run_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "policies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "mode",
          "id",
          "name",
          "target",
          "change_detection",
          "status",
          "created_at",
          "updated_at",
          "initial_run_id",
          "request_id"
        ],
        "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

* [Connect integrations](https://deepline.com/docs/integrations.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.