forked from
oppi.li/claude-code
source dump of claude code
1export const LSP_TOOL_NAME = 'LSP' as const
2
3export const DESCRIPTION = `Interact with Language Server Protocol (LSP) servers to get code intelligence features.
4
5Supported operations:
6- goToDefinition: Find where a symbol is defined
7- findReferences: Find all references to a symbol
8- hover: Get hover information (documentation, type info) for a symbol
9- documentSymbol: Get all symbols (functions, classes, variables) in a document
10- workspaceSymbol: Search for symbols across the entire workspace
11- goToImplementation: Find implementations of an interface or abstract method
12- prepareCallHierarchy: Get call hierarchy item at a position (functions/methods)
13- incomingCalls: Find all functions/methods that call the function at a position
14- outgoingCalls: Find all functions/methods called by the function at a position
15
16All operations require:
17- filePath: The file to operate on
18- line: The line number (1-based, as shown in editors)
19- character: The character offset (1-based, as shown in editors)
20
21Note: LSP servers must be configured for the file type. If no server is available, an error will be returned.`