docs: add guidance for handling large content in analyze_code
- Update tool description to recommend file paths for large content - Add note in README about terminal output behavior - Explain that MCP client shows full parameters in terminal - Guide users to save large content to files first This helps users avoid terminal clutter when analyzing large code snippets. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -167,6 +167,8 @@ Specialized tool for analyzing large files or multiple files that exceed Claude'
|
|||||||
"Have Gemini review these files together: auth.py, users.py, permissions.py"
|
"Have Gemini review these files together: auth.py, users.py, permissions.py"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note on Terminal Output:** When using direct code input, the MCP client displays the full content in the terminal. For better readability with large content, save it to a file first and provide the file path instead.
|
||||||
|
|
||||||
### `list_models`
|
### `list_models`
|
||||||
Lists available Gemini models (defaults to 2.5 Pro Preview).
|
Lists available Gemini models (defaults to 2.5 Pro Preview).
|
||||||
|
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ async def handle_list_tools() -> List[Tool]:
|
|||||||
),
|
),
|
||||||
Tool(
|
Tool(
|
||||||
name="analyze_code",
|
name="analyze_code",
|
||||||
description="Analyze code files or snippets with Gemini's 1M context window",
|
description="Analyze code files or snippets with Gemini's 1M context window. For large content, use file paths to avoid terminal clutter.",
|
||||||
inputSchema={
|
inputSchema={
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -248,7 +248,7 @@ async def handle_list_tools() -> List[Tool]:
|
|||||||
},
|
},
|
||||||
"code": {
|
"code": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Direct code content to analyze (alternative to files)",
|
"description": "Direct code content to analyze (use for small snippets only; prefer files for large content)",
|
||||||
},
|
},
|
||||||
"question": {
|
"question": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user