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.
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 |