ask-ai
Analyze code or ask questions using AI agents like Gemini, Codex, and Claude Code, with options for sandbox testing and structured edits.
Instructions
Provider selection [--provider], model selection [-m], sandbox [-s], and changeMode:boolean for providing edits. Supports Gemini, Codex, and Claude Code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Analysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions | |
| provider | No | Provider to use (e.g., 'gemini', 'codex', 'claude'). Defaults to server config ('gemini'). | gemini |
| model | No | Optional model to use (e.g., 'gemini-2.5-flash', 'gpt-5.3-codex'). If not specified, uses the server default (provider default). | |
| sandbox | No | Use sandbox mode (-s flag, Gemini only) to safely test code changes, execute scripts, or run potentially risky operations in an isolated environment | |
| changeMode | No | Enable structured change mode (Gemini only) - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly | |
| chunkIndex | No | Which chunk to return (1-based) | |
| chunkCacheKey | No | Optional cache key for continuation |