Save agent version
save-agent-versionCreate an instruction version via POST /v1/update-agent. Send the full agent text plus chat_flow JSON, not a partial chunk.
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": {
"bot_id": "<bot_id>",
"name": "<name>",
"agent": "<agent>",
"chat_flow": "<chat_flow>"
},
"name": "save-agent-version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edit | No | Set true when updating an existing draft version | |
| name | Yes | Version label shown in the dashboard | |
| soul | No | Soul instruction section | |
| agent | Yes | Full agent instruction markdown or text | |
| bot_id | Yes | Numeric bot id | |
| memory | No | Memory instruction section | |
| identity | No | Identity instruction section | |
| chat_flow | Yes | chat_flow JSON string stored on the bot | |
| user_info | No | User info instruction section | |
| version_id | No | Existing version id when editing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | JSON or plain text body returned by the Botsify HTTP API |