Run a playbook
run_playbookStart one built-in playbook now. A Replo agent follows the playbook's built-in instructions (the prompt get_playbook returns) plus a closing step that emails the report, in the background, with the project's analytics, ads research and connected integrations. Built-in playbooks only read, apart from saving their own report to Files or an artifact; the instructions say so, but the agent's tools aren't limited to reading. Side effects: the first call creates the user's own automation for the playbook, and later calls reuse it, so a run follows the prompt as the user last edited it; the finished report is emailed to the user. The run outlives this call: read it with get_task_run and the returned taskId and runId. Calling again during a run returns that run. If something must be connected first, nothing starts and it returns needs_setup with a link for each: give the user the links, then call again. For multi-step Replo work, call skills with name "replo".
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": {
"projectId": "<projectId>",
"playbookId": "<playbookId>"
},
"name": "run_playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project to run the playbook in, from list_projects. | |
| playbookId | Yes | A playbook id from find_playbooks. |