ask-one
Request a second opinion from a named AI provider (e.g., codex, gemini, grok) for a given prompt. Returns an advisory response in a JSON envelope.
Instructions
Second opinion from ONE named provider in the active panel (e.g. codex, gemini, grok, openrouter:<alias> - get the names from panel). Issue N in parallel (one per panel name) so each renders independently as it lands. Calls one external LLM provider (needs its key/CLI; rate limits apply); returns a text-wrapped JSON envelope { result }, or { error, panel } when the name is not in the panel. Advisory, single-shot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory the provider runs in (used to resolve relative file refs). Defaults to the server process directory. | |
| files | No | Optional attachments for providers that read files (Grok/OpenRouter; inlined as context for Codex/Gemini). Each item is EXACTLY ONE of path/dir/file_id/file_url. | |
| expert | No | Optional persona: architect, plan-reviewer, scope-analyst, code-reviewer, security-analyst, researcher, or debugger. On a named expert tool the tool's own persona wins and this is ignored. | |
| prompt | Yes | The question or task for the provider(s)/expert. | |
| provider | Yes | A name from `panel` (e.g. "codex", "gemini", "grok", "openrouter:<alias>"). | |
| reasoningEffort | No | Reasoning depth where the provider supports it (Grok, OpenRouter): low, medium, high, or none. CLI providers (Codex, Gemini) ignore it. | |
| developerInstructions | No | Optional system/developer instructions injected verbatim; overrides the built-in persona for `expert`. |