consult_openrouter_with_stdin
Pipe file contents or logs as stdin to OpenRouter for AI processing, combining them with a prompt for CI/CD workflows.
Instructions
Consult OpenRouter with stdin content piped to prompt.
Similar to 'echo "content" | open-bridge "prompt"' - combines stdin with prompt. Perfect for CI/CD workflows where you pipe file contents to the AI.
Args: stdin_content: Content to pipe as stdin (e.g., file contents, diff, logs) prompt: The prompt to process the stdin content directory: Working directory (required) 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
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": {
"stdin_content": "<stdin_content>",
"prompt": "<prompt>",
"directory": "<directory>"
},
"name": "consult_openrouter_with_stdin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin_content | Yes | ||
| prompt | Yes | ||
| directory | Yes | ||
| format | No | json | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |