execute_playbook
Execute a ServiceNow playbook step by step, passing results through shared context; supports dry-run preview and async background jobs for long runs.
Instructions
Execute a playbook step by step, passing results forward through context (requires NOW_ASSIST_ENABLED). Supports dry_run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"playbook": "<playbook>"
},
"name": "execute_playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | Run as a background job and return a job_id at once. Poll it with get_job. Calls that take longer than about 20 seconds switch to a job on their own. | |
| context | No | Initial context key-value pairs available to all steps | |
| dry_run | No | Preview execution plan without invoking tools (default true) | |
| playbook | Yes | Playbook object with name, description, and steps array |