capability
Execute actions like sending SMS or generating invoices using capability-based routing. APIClaw automatically selects providers, handles fallbacks, and optimizes for cost and speed.
Instructions
Execute an action by capability, not provider. APIClaw automatically selects the best provider, handles fallback, and optimizes for cost/speed. Example: capability("sms", "send", {to: "+46...", message: "Hello"})
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capability | Yes | Capability ID: "sms", "email", "search", "tts", "invoice", "llm" | |
| action | Yes | Action to perform: "send", "search", "generate", etc. | |
| params | Yes | Parameters for the action (capability-standard params, not provider-specific) | |
| preferences | No | Optional routing preferences | |
| subagent_id | No | Optional subagent identifier for multi-agent tracking | |
| ai_backend | No | AI backend making this request (e.g., "claude-3-sonnet", "gpt-4"). Used for analytics. |