id, name, and description only — use clay routines get for the full routine definition.
--limit sets the page size, and the response includes a top-level cursor when more routines are available; pass it back with --cursor to fetch the next page.
Flags
| Flag | Description |
|---|---|
--integration <name> | Restrict to routines exposed on the given integration. One of api, mcp, or claygent. |
--limit <n> | Maximum routines to return per page. Must be a positive integer up to 100. Defaults to 20. |
--cursor <token> | Resume from a previous response’s cursor to fetch the next page. |
Output
| Field | Type | Description |
|---|---|---|
data[].id | string | Routine id. Always prefixed with the routine type (e.g. function:). |
data[].name | string | Display name. |
data[].description | string | null | Description, or null if not set. |
cursor | string | Present when more routines are available. Pass it back via --cursor. Omitted on the last page. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | --limit is not a positive integer or exceeds 100. |
auth_forbidden | 3 | The API key lacks the cli:all scope (or all). |

