swarms agent completions
post_swarms_agent-completionsswarms agent completions Calls POST /api/swarms/agent-completions on swarms.world with your API key.
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_config": "<agent_config>",
"task": "<task>"
},
"name": "post_swarms_agent-completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| img | No | One base64 image | |
| imgs | No | Several base64 images | |
| task | Yes | Required: a missing or empty task is a 400 | |
| history | No | Earlier turns: an object, or a list of { role, content } | |
| agent_config | Yes | Required: a missing or empty agent_config is a 400. Only its presence is checked here | |
| tools_enabled | No | ||
| search_enabled | No | Web search. Accepted by the Swarms API (the prompt chat relies on it) though absent from its published schema |