test_agent
Synchronously test an AI agent with a prompt: polls every 2 seconds until completion or 90-second timeout. Returns status and execution ID.
Instructions
Quick synchronous test of an agent with a 90-second timeout.
Starts a run and polls every 2 seconds until it completes (or times out).
Reports progress via MCP notifications while waiting. Returns the final
status and execution_id. Use get_run_logs afterwards to see the output.
For production usage, prefer run_agent + get_run_status (non-blocking).
Args: agent_id: The agent's UUID. prompt: The test prompt to send.
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": {
"ctx": "<ctx>",
"agent_id": "<agent_id>",
"prompt": "<prompt>"
},
"name": "test_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| agent_id | Yes | ||
| prompt | Yes |