Simulate agent draft
simulate_agent_draftTry a text conversation against the SAVED DRAFT, not the live agent - a cheap way to check wording (a system prompt or dataFields change) before publishing. Runs on a fixed Anthropic model (its name is not returned), with no tools and no audio - it checks what the agent would say, not a real call. Not billed to the customer (free) and NOT required before publish_agent_draft - simulation is entirely optional, capped at 20 calls per hour per account across all agents. expectedRevision must equal the current draft revision from get_agent_draft. message is the next thing the caller says (1 to 4000 characters); messages is optional prior turns (role user or assistant, at most 8 entries, 2000 characters per message, 8000 characters total combined) WITHOUT the current message. On success this sets the draft's tested marker to the current revision, returned in the response. Same data as POST /v1/agents/{id}/simulate (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>",
"expectedRevision": "<expectedRevision>",
"message": "<message>"
},
"name": "simulate_agent_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the agent whose draft to simulate, from list_agents. Looks like ag_9f3a2b7c4d1e. | |
| message | Yes | The next thing the caller says to the agent, 1 to 4000 characters. | |
| messages | No | Prior turns of the conversation, oldest first, WITHOUT the current message - at most 8 entries, 8000 characters combined. Omit for the start of a conversation. | |
| expectedRevision | Yes | Revision of the draft as returned by get_agent_draft. The simulation is rejected with revision_conflict when it changed since - reload with get_agent_draft. |