delegate_to_provider
Route a sub-agent to any OpenAI/Anthropic-compatible provider by specifying the endpoint, API key, and model, enabling delegation to non-default backends like DeepSeek or local models.
Instructions
Versión genérica: despacha un agente a CUALQUIER endpoint OpenAI/Anthropic-compatible. Usar para rutear explícitamente a providers no configurados como default (DeepSeek, MiniMax, Alibaba, OpenRouter, etc.).
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": {
"provider_url": "<provider_url>",
"api_key": "<api_key>",
"model": "<model>",
"agent_name": "<agent_name>",
"task": "<task>"
},
"name": "delegate_to_provider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| model | Yes | Identificador del modelo (depende del provider) | |
| api_key | Yes | API key del provider | |
| workdir | No | . | |
| mode_tag | No | Tag a prepender en system prompt (default MODE:LOCAL — puede ser MODE:DEEPSEEK etc.) | MODE:LOCAL |
| max_turns | No | ||
| agent_name | Yes | ||
| max_tokens | No | ||
| provider_url | Yes | URL completa al endpoint /v1/messages (o equivalente) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||