Update agent instructions
update_agent_instructionsReplace a private agent's entire instructions (its system prompt) with new text. Only agents that aren't live on the web can be changed here; for a live agent this changes nothing and returns its publishUrl, where the owner can take it offline first. Returns the previous instructions so the change can be reverted.
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": {
"agentId": "<agentId>",
"instructions": "<instructions>"
},
"name": "update_agent_instructions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Agent ID from list_agents. | |
| instructions | Yes | The complete new instructions, not a diff. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ||
| agentName | Yes | ||
| instructions | Yes | ||
| previousInstructions | Yes |