Skip to content

Commit 2122c9c

Browse files
docs: Update pretooluse documentation with additional parameters and constraints
- Added parameters for operation, filePath, line, and character to enhance clarity. - Clarified the library ID format in the MCP context section. - Introduced a constraint on the maximum number of calls per question for better performance. These updates improve the comprehensibility and usability of the pretooluse documentation.
1 parent da4b10d commit 2122c9c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/internal/hooks/pretooluse/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,15 @@ Use LSP instead of brute-force Glob/Grep when possible:
9393
- `workspaceSymbol`: Search symbols across the codebase
9494
- `incomingCalls`/`outgoingCalls`: Trace call hierarchy
9595

96+
**Parameters**: `operation`, `filePath` (absolute), `line`, `character`
97+
9698
### Context7 MCP (for library documentation)
9799
Before making assumptions about libraries/frameworks, query current docs:
98-
1. `mcp__context7__resolve-library-id`: Get library ID
100+
1. `mcp__context7__resolve-library-id`: Get library ID (e.g., "redis" → "/redis/redis")
99101
2. `mcp__context7__query-docs`: Query specific documentation
100102

103+
**Constraint**: Max 3 calls per question
104+
101105
### Sequential Thinking MCP (for complex analysis)
102106
Use `mcp__sequential-thinking__sequentialthinking` for multi-step problem solving and trade-off analysis.
103107

0 commit comments

Comments
 (0)