Get agent draft
get_agent_draftRead the saved draft (concept) for a voice agent - the safe way to review or change an agent without touching what is live. Returns draft (the editable snapshot, not yet live), published (what is actually live right now), revision (pass this back as expectedRevision to save_agent_draft/publish_agent_draft/simulate_agent_draft - optimistic concurrency, so you and a human editing the same agent in the volai portal cannot silently overwrite each other), tested (the last simulate_agent_draft result for the current revision, or null if it has not been tested), history (past published revisions, without their snapshots) and operation (a durable operation currently blocking further changes, or null when nothing is blocking - kind is one of update, publish, rollback, outbound_task; status is one of running, uncertain, drift, failed, done). Same data as GET /v1/agents/{id}/draft (response schema in /openapi.json).
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": {
"id": "<id>"
},
"name": "get_agent_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the agent whose draft to read, from list_agents. Looks like ag_9f3a2b7c4d1e. |