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

> Get WebDB Activity. Context.dev Contextdev Get Webdb Usage reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get WebDB Activity.

<Info>
  Tool ID: `contextdev_get_webdb_usage`
</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_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={null}
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 exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "breakdown_by_collection": [
      {
        "collection_id": "collection_123",
        "name": "Example",
        "rows": 123,
        "syncs": 123
      }
    ],
    "rows_total": 123,
    "storage_gb": 123
  }
}
```

Use `deepline tools get 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={null}
  {
    "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={null}
  {
    "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](/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)
