Run an agent on a chosen model
run_agentExecute a host project's agent definition against a chosen model and return the result with the model actually used, so you can verify routing.
Instructions
Executes an agent definition from the host project against a model you name. Returns the result plus the model actually used, so routing is verifiable.
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": {
"agent": "<agent>",
"task": "<task>"
},
"name": "run_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The instruction, including the desired output contract | |
| agent | Yes | File stem under the agents directory, e.g. "Explorer" | |
| model | No | Tier name (cheap, default, strong) or an allow-listed model id | |
| maxRounds | No | Tool rounds before stopping (default 4) |