Edit the agent's script stages
update_agent_scriptReplace the script stages (rename, reorder, edit, add or remove stages) and optionally the tone, like the builder's script editor. Send the FULL list of stages you want; the full text is rebuilt from them. Get the current stages from get_agent (script_sections). Free.
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": {
"id": "<id>",
"sections": "<sections>"
},
"name": "update_agent_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent id (UUID) — from list_agents | |
| sections | Yes | All stages in order | |
| email_script | No | Written-channel script (email/LinkedIn); omit to keep | |
| script_style | No | Tone; omit to keep the current one |