Run a swarm
run_swarmHave several AI agents on the user's own computers work on a question at once, through Toskar, and answer with what they found together.
Instructions
Have several AI agents on the user's own computers work on a question at once, through Toskar, and answer with what they found together. split divides the job into parts the agents do at once; race has agents on different models each answer the whole question, and the best answer wins. It takes longer than ask_local_ai, saves the agents' chats in Toskar, and returns the answer and a link to the coordinator's chat. Agents may read the web or the user's connected knowledge, but they don't change anything.
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": {
"prompt": "<prompt>"
},
"name": "run_swarm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional. split (the default) or race; leave out for the profile's. | |
| prompt | Yes | The question or job, with any context it needs. | |
| profile | No | Optional. The id of the Toskar profile to run it with; leave out for the user's default. |