Built-in tools›Files and search
Code navigation
lsp- Group
- Files and search
- Turned on by
- Its own switch on the Tools page of Conversation settings.
- Approval
- Not reviewed: runs without asking, within the limits on this page.
- Profile key
tool.lsp.description
Asks a language server about code: where a symbol is defined, where it is used, what type it has, and what calls what.
Which server answers depends on the file's extension. You set servers up as described in Code navigation.
When it asks you
Normally a call counts as reading filePath, like read. If the workspace has its own .mewrk/lsp.json, every call asks under Manual and Accept edits, because that file comes with the project and names the command Mewrk starts. Servers from your own ~/.mewrk/lsp.json, or built into Mewrk, never trigger this.
Limits
Files over 10 MB are not sent to the server, and a request waits at most 30 seconds for an answer.
Good to know
You can change a recorded lsp call in the timeline and run it again with Rerun.
Parameters
| Parameter | Type | Details |
|---|---|---|
character requiredCharacter | integer | 1-based, as shown in editors. |
filePath requiredFile path | string | — |
line requiredLine | integer | 1-based, as shown in editors. |
operation requiredOperation | string | One of nine: goToDefinition, findReferences, hover, documentSymbol, workspaceSymbol, goToImplementation, prepareCallHierarchy, incomingCalls, outgoingCalls."goToDefinition" "findReferences" "hover" "documentSymbol" "workspaceSymbol" "goToImplementation" "prepareCallHierarchy" "incomingCalls" "outgoingCalls" |
queryQuery | string | For workspaceSymbol. |