agents_prompt_restore
Restore a past version of an agent's prompt_text by version_number. Creates a new version pointing at the restored content — history is preserved. Use agents.prompt_history first to find the version_number you want.
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": {
"agent_id": "<agent_id>",
"version_number": "<version_number>"
},
"name": "agents_prompt_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional: why this restore is happening (shows up in history UI) | |
| agent_id | Yes | ID of the agent | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| version_number | Yes | The version_number to restore (get it from agents.prompt_history) |