agentVersionActions
Rename, delete, or restore a saved agent version. Restore applies that version's configuration to the live agent and first saves your current setup as a backup, so the change is undoable.
Instructions
Rename, delete or restore one saved version of an agent.
Set action to pick what to do.
rename: Rename a saved version or edit its note. Version history is immutable otherwise; only the name and note can change.
delete: Delete a saved version.
restore: Restore a version onto the live agent.
Your current setup is saved first as a backup version, so restoring is
undoable. Configuration comes back. Knowledge files or integrations deleted
since this version was saved can't be re-linked. They are reported in
skipped.
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": {
"action": "<action>",
"agent_id": "<agent_id>",
"version_number": "<version_number>"
},
"name": "agentVersionActions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Only for `rename`. New display name for the version. | |
| note | No | Only for `rename`. New note for the version. | |
| action | Yes | What to do: rename, delete, restore. | |
| agent_id | Yes | The ID of the agent. | |
| version_number | Yes | The version number, as returned in `version_number` from the list or save endpoints. |