get_agent_versions
Retrieves version history for Otto or Now Assist AI agents and agentic workflows, including version number, name, state, instructions, and condition, sorted newest first for change tracking.
Instructions
Get the version history of an Otto / Now Assist AI agent or agentic workflow (sn_aia_version): version number, name, state (Draft/Published), instructions and condition. Newest first.
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": {
"target_id": "<target_id>"
},
"name": "get_agent_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max records (default 25) | |
| state | No | Filter by state, e.g. published, draft | |
| target_id | Yes | sys_id of the sn_aia_agent or sn_aia_usecase | |
| target_table | No | Optional target table filter | |
| include_instructions | No | Include the full instructions text (default false) |