Playbooks
MCP tools for the Playbooks module. See the Playbooks module docs for permissions and data model.
list-playbooks
List playbooks
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
project_id | string | no | Project ID (required if not using project key auth) |
limit | number | no | Results per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED. |
cursor | string | no | The previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR. |
create-playbook
Create a playbook
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
project_id | string | no | Project ID (required if not using project key auth) |
policy_ids | any | yes | The policies every execution of the version runs under. |
name | string | yes | Human-readable name, unique per project |
description | string | null | no | What the playbook is for |
definition | any | yes | The nodes and how their inputs are sourced |
version_label | string | no | Optional tag for version 1, e.g. initial |
validate-playbook
Validate a playbook definition
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
project_id | string | no | Also check the references against this project: the upstreams (UNKNOWN_UPSTREAM, and the MISSING_NODE and UNKNOWN_FIELD of what an upstream node pulls) and the executors (EXECUTOR_NOT_FOUND, EXECUTOR_ACTION_REQUIRED, EXECUTOR_ACTION_UNAVAILABLE, EXECUTOR_TOOL_UNSUPPORTED, TRANSFORMATION_TOOL_UNSUPPORTED). |
playbook_id | string | no | The playbook the definition would update, so an upstream reading it back is UPSTREAM_CYCLE. Requires project_id. |
definition | any | yes | The definition to check |
get-playbook
Get a playbook
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
playbook_id | string | yes | The playbook ID |
update-playbook
Update a playbook
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
playbook_id | string | yes | The playbook ID |
name | string | no | Human-readable name, unique per project |
description | string | null | no | What the playbook is for |
definition | any | no | Replaces the whole definition; a change archives a new version |
policy_ids | any | no | Replaces the policies the version runs under; a change archives a new version. |
version_label | string | no | Optional tag for the version this write creates. Ignored when the write changes no definition, since no version is archived. |
expected_version | any | no | Refuses the write unless the playbook is at this version. |
delete-playbook
Delete a playbook
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
playbook_id | string | yes | The playbook ID |
list-playbook-versions
List a playbook's versions
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
playbook_id | string | yes | The playbook ID |
limit | number | no | Results per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED. |
cursor | string | no | The previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR. |
get-playbook-version
Fetch an archived playbook version
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
playbook_id | string | yes | The playbook ID |
version | number | yes | The archived version number |
restore-playbook-version
Restore an archived playbook version
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
playbook_id | string | yes | The playbook ID |
version | number | yes | The archived version number |
label | string | no | Optional tag for the new version. Defaults to restored from vN. |
create-playbook-case
Create a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
playbook_id | string | yes | The playbook ID |
subject | string | yes | Who or what the case is about, as you name it |
actor_id | string | no | The end user the case belongs to, an actor of the playbook's project; an unknown one is 400 ACTOR_NOT_FOUND. Omitted, the case belongs to no actor. |
upstreams | object | no | The case bound to each of the playbook's declared upstreams, by name: every declared name and no other, each a case of the declared playbook. Bound at create and fitted to the version at each upgrade; empty when the version declares none. |
list-playbook-cases
List playbook cases
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
project_id | string | no | Project ID (required if not using project key auth) |
playbook_id | string | no | Only the cases of this playbook |
actor_id | string | no | Only the cases that belong to this actor. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent lists the cases of the end user it serves only. |
subject | string | no | Only the cases whose subject is exactly this |
automation_status | array<string> | no | Only the cases in these automation statuses. Repeat the parameter to OR values. A value outside the enum, empty string included, is a 400. |
limit | number | no | Results per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED. |
cursor | string | no | The previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR. |
get-playbook-case
Get a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
delete-playbook-case
Delete a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
write-playbook-case-inputs
Write a case's inputs
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
inputs | array<object> | yes | The writes, applied all or none |
wait | boolean | no | Answer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away |
get-playbook-case-missing
List what a node still needs
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
node_id | string | yes | The ID of the node to reach, usually a final node |
list-playbook-case-entries
List a case's entries
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
node_id | string | no | Only the entries of this node |
limit | number | no | Results per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED. |
cursor | string | no | The previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR. |
run-playbook-case-node
Run a node of a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
node | string | yes | The ID of a node of the case's playbook version |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
wait | boolean | no | Answer once the executor settles or parks instead of right away |
list-playbook-case-executions
List a case's executions
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
node_id | string | no | Only the executions of this node |
limit | number | no | Results per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED. |
cursor | string | no | The previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR. |
get-playbook-case-execution
Get an execution
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
execution_id | string | yes | The execution ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
export-playbook-case-node
Export a final node
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
node | string | yes | The ID of a node of the case's playbook version |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
transformations | array<string> | no | The names of the transformations to render; every one the node declares when omitted |
revision | number | no | The output or confirmation of the node to render; its current output when omitted |
list-playbook-case-exports
List a case's exports
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
node_id | string | no | Only the exports of this node |
transformation | string | no | Only the exports of this transformation |
limit | number | no | Results per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED. |
cursor | string | no | The previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR. |
get-playbook-case-export
Get an export
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
export_id | string | yes | The export ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
upgrade-playbook-case
Upgrade a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
version | number | no | The version to move the case to; the playbook's current one when omitted |
upstreams | any | no | A case for each upstream the target version declares and the case does not bind yet, by name, checked as at create. A binding the target version declares on the same playbook is kept and never named here; every other binding is dropped. |
wait | boolean | no | Answer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away |
list-playbook-case-upgrades
List a case's upgrades
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
limit | number | no | Results per page. Above the maximum it is clamped; below 1 or not an integer it is 400 VALIDATION_FAILED. |
cursor | string | no | The previous page's next_cursor; omit it for the first page. Send it with the same filters as the request that returned it: a malformed cursor, or one sent with other filters, is 400 INVALID_CURSOR. |
pause-playbook-case
Pause a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
resume-playbook-case
Resume a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
confirm-playbook-case-node
Confirm a node of a case
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
case_id | string | yes | The case ID |
node | string | yes | The ID of a node of the case's playbook version |
actor_id | string | no | Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is 404 as if it did not exist. Pin it in a tool's preset_parameters as {{context:actor_id}} so an agent serving an end user reaches that user's items only. |
decision | string | yes | Whether the node's inputs, as read, are approved |
reason | string | no | Why the inputs were rejected; required on a rejection |
expected_revisions | object | yes | Each of the node's inputs, by name, mapped to the revision read, or null for one read as unset |
wait | boolean | no | Answer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away |