Files
python-sdk/docs/mcp/tools/lsp.md
T
zeekay 2a8255df59 docs: improve DX with navigation and cross-references
- Update docs/mcp/tools/ placeholders with quick refs and links
- Create docs/ref/tools/index.md with full package table
- Create docs/ref/agent/index.md with topic links
- Create docs/ref/mcp/index.md with tool categories
- Create docs/tools/index.md as main entry point
- Add consistent cross-references between sections
2026-01-05 17:45:00 -08:00

729 B

LSP Tool

Language Server Protocol for code intelligence.

→ Full documentation: ../../tools/lsp.md

Quick Reference

# Go to definition
lsp(action="definition", file="main.py", line=10, character=15)

# Find references
lsp(action="references", file="main.py", line=10, character=15)

# Hover information
lsp(action="hover", file="main.py", line=10, character=15)

# Code completion
lsp(action="completion", file="main.py", line=10, character=15)

# Rename symbol
lsp(action="rename", file="main.py", line=10, character=15, new_name="newName")

# Get diagnostics
lsp(action="diagnostics", file="main.py")

Supported: Python, TypeScript, JavaScript, Go, Rust, Java, C/C++, Ruby, Lua