Tools
hover
Get language-server hover information for source identifiers.
Use hover for the type, signature, or documentation supplied by the language server at exact source occurrences or registered handles.
Use when
- You need resolved information for identifiers visible in source.
- You need hover information for complete canonical handle groups.
Do not use when
- The target is not an actual source occurrence; generated annotations are not valid targets.
- You need a definition body or references; use
jump,extract, orshow_usage.
Request
{"file":"/workspace/project/src/lib.rs","symbols":[["UserService",42]],"workspace_root":"/workspace/project"}Parameters
| Field | Required | Default / bounds |
|---|---|---|
file | source form | Path; file_path is accepted as an alias. |
symbols | source form | Entries are [symbol_name, line]; line is a 1-based integer. |
workspace_root | no | Active workspace routing. |
handles | handle form | Registered handles; mutually exclusive with source fields. |
What it returns
Language-server hover information for each target, resolved independently. Source requests can batch related identifiers from one file.
Common mistakes
- Quoting line numbers or using zero-based lines.
- Targeting generated type annotations instead of source identifiers.
- Using a source target when a previously discovered handle is the intended canonical group.
Related tools
jump, extract, line_context