ask
Execute GitHub Copilot CLI for code analysis and task automation with file access, tool control, and session management.
Instructions
Execute GitHub Copilot CLI with file analysis, tool management, and safety controls
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | AI model to use: 'gpt-5', 'claude-sonnet-4', 'claude-sonnet-4.5', or 'claude-haiku-4.5' (0.33x cost). Defaults to COPILOT_MODEL env var or Copilot's default | |
| addDir | No | Add directories to allowed list for file access | |
| banner | No | Show the animated banner on startup | |
| logDir | No | Set log file directory | |
| prompt | Yes | Task or question for GitHub Copilot CLI. Supports @ syntax for files/images (e.g., '@file.png', '@src/') and ! prefix for direct shell commands | |
| resume | No | Resume from a previous session (optionally specify session ID) | |
| noColor | No | Disable all color output | |
| timeout | No | Maximum execution time in milliseconds | |
| continue | No | Resume the most recent session | |
| denyTool | No | Deny specific tools (takes precedence over allowTool) | |
| logLevel | No | Set the log level | |
| allowTool | No | Allow specific tools to run. Supports glob patterns (e.g., 'shell(npm run test:*)') | |
| sessionId | No | Use specific session ID for multi-turn conversations | |
| workingDir | No | Working directory for command execution. Falls back to COPILOT_MCP_CWD env var or process.cwd() | |
| screenReader | No | Enable screen reader optimizations | |
| allowAllPaths | No | Automatically approve access to all file paths (use with caution) | |
| allowAllTools | No | Allow all tools to run automatically (required for non-interactive mode) | |
| disableMcpServer | No | Disable specific MCP servers | |
| additionalMcpConfig | No | Additional MCP server configuration (JSON string or object). Use @ prefix for file path (e.g., "@config.json") | |
| enableSessionTracking | No | Enable session tracking for conversation persistence |