consult_openrouter
Submit prompts to OpenRouter API and receive structured responses in text, JSON, or code format.
Instructions
Consult OpenRouter API in non-interactive mode with structured output.
Processes prompt and returns formatted response. Supports text, JSON, and code extraction formats.
Args: query: The prompt to send to OpenRouter directory: Working directory (required) - for context only format: Output format - "text", "json", or "code" (default: "json") timeout: Optional timeout in seconds (overrides env var, recommended: 60-120)
Returns: Formatted response based on format parameter
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| directory | Yes | ||
| format | No | json | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |