> ## 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 Webdb Usage

> See your Context.dev WebDB activity and limits for a date range. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

See your Context.dev WebDB activity and limits for a date range.

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

## 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_webdb_usage',
  {
    "from": "2026-01-15T12:00:00Z",
    "to": "2026-01-15T12:00:00Z",
    "tags": [
      "example"
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute contextdev_get_webdb_usage --input '{
  "from": "2026-01-15T12:00:00Z",
  "to": "2026-01-15T12:00:00Z",
  "tags": [
    "example"
  ]
}' --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": {
    "breakdown_by_collection": [
      {
        "collection_id": "collection_123",
        "name": "Example",
        "rows": 123,
        "syncs": 123
      }
    ],
    "rows_total": 123,
    "storage_gb": 123
  }
}
```

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

## Input reference

Return current WebDB account activity and limits.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.from` | `string` | No | — | Start of the usage period. Format: `date-time`. |
| `payload.to` | `string` | No | — | End of the usage period. Format: `date-time`. |
| `payload.tags` | `array` | No | — | Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters. Maximum items: 20. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Return current WebDB account activity and limits.",
    "properties": {
      "from": {
        "type": "string",
        "description": "Start of the usage period.",
        "format": "date-time"
      },
      "to": {
        "type": "string",
        "description": "End of the usage period.",
        "format": "date-time"
      },
      "tags": {
        "type": "array",
        "description": "Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
        "maxItems": 20,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.breakdown_by_collection` | `array` | Yes | — | — |
| `result.data.breakdown_by_collection[].collection_id` | `string` | Yes | — | — |
| `result.data.breakdown_by_collection[].name` | `string` | Yes | — | — |
| `result.data.breakdown_by_collection[].rows` | `integer` | Yes | — | — |
| `result.data.breakdown_by_collection[].syncs` | `integer` | Yes | — | — |
| `result.data.rows_total` | `integer` | Yes | — | — |
| `result.data.storage_gb` | `number` | Yes | — | — |
| `result.data.key_metadata` | `object` | 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": {
          "breakdown_by_collection": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "collection_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "rows": {
                  "type": "integer"
                },
                "syncs": {
                  "type": "integer"
                }
              },
              "required": [
                "collection_id",
                "name",
                "rows",
                "syncs"
              ],
              "additionalProperties": false
            }
          },
          "rows_total": {
            "type": "integer"
          },
          "storage_gb": {
            "type": "number"
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "breakdown_by_collection",
          "rows_total",
          "storage_gb"
        ],
        "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.