Skip to main content

Playbooks

MCP tools for the Playbooks module. See the Playbooks module docs for permissions and data model.

list-playbooks​

List playbooks

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

create-playbook​

Create a playbook

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
namestringyesHuman-readable name, unique per project
descriptionstring | nullnoWhat the playbook is for
definitionanyyesThe nodes and how their inputs are sourced
version_labelstringnoOptional tag for version 1, e.g. initial

validate-playbook​

Validate a playbook definition

Arguments​

ArgumentTypeRequiredDescription
definitionanyyesThe definition to check

get-playbook​

Get a playbook

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID

update-playbook​

Update a playbook

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
namestringnoHuman-readable name, unique per project
descriptionstring | nullnoWhat the playbook is for
definitionanynoReplaces the whole definition; a change archives a new version
version_labelstringnoOptional tag for the version this write archives. Ignored when the write changes no definition, since no version is archived.
expected_versionanynoRefuses the write unless the playbook is at this version.

delete-playbook​

Delete a playbook

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID

list-playbook-versions​

List a playbook's versions

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

get-playbook-version​

Fetch an archived playbook version

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
versionnumberyesThe archived version number

restore-playbook-version​

Restore an archived playbook version

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
versionnumberyesThe archived version number
labelstringnoOptional tag for the new version. Defaults to restored from vN.

create-playbook-case​

Create a case

Arguments​

ArgumentTypeRequiredDescription
playbook_idstringyesThe playbook ID
subjectstringyesWho or what the case is about, as you name it

list-playbook-cases​

List playbook cases

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
playbook_idstringnoOnly the cases of this playbook
automation_statusarray<string>noOnly the cases in these automation statuses. Repeat the parameter to OR values. A value outside the enum, empty string included, is a 400.
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

get-playbook-case​

Get a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID

delete-playbook-case​

Delete a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID

write-playbook-case-inputs​

Write a case's inputs

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
inputsarray<object>yesThe writes, applied all or none
waitbooleannoAnswer 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​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
node_idstringyesThe ID of the node to reach, usually a final node

list-playbook-case-entries​

List a case's entries

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
node_idstringnoOnly the entries of this node
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

run-playbook-case-node​

Run a node of a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
nodestringyesThe ID of a node of the case's playbook version
waitbooleannoAnswer once the executor settles or parks instead of right away

list-playbook-case-executions​

List a case's executions

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
node_idstringnoOnly the executions of this node
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

get-playbook-case-execution​

Get an execution

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
execution_idstringyesThe execution ID

export-playbook-case-node​

Export a final node

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
nodestringyesThe ID of a node of the case's playbook version
transformationsarray<string>noThe names of the transformations to render; every one the node declares when omitted
revisionnumbernoThe output or confirmation of the node to render; its current output when omitted

list-playbook-case-exports​

List a case's exports

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
node_idstringnoOnly the exports of this node
transformationstringnoOnly the exports of this transformation
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

get-playbook-case-export​

Get an export

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
export_idstringyesThe export ID

upgrade-playbook-case​

Upgrade a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
versionnumbernoThe version to move the case to; the playbook's current one when omitted
waitbooleannoAnswer 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​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

pause-playbook-case​

Pause a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID

resume-playbook-case​

Resume a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID

confirm-playbook-case-node​

Confirm a node of a case

Arguments​

ArgumentTypeRequiredDescription
case_idstringyesThe case ID
nodestringyesThe ID of a node of the case's playbook version
decisionstringyesWhether the node's inputs, as read, are approved
reasonstringnoWhy the inputs were rejected; required on a rejection
expected_revisionsobjectyesEach of the node's inputs, by name, mapped to the revision read, or null for one read as unset
waitbooleannoAnswer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away