Skip to content
context-engine
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, or show_usage.

Request

{"file":"/workspace/project/src/lib.rs","symbols":[["UserService",42]],"workspace_root":"/workspace/project"}

Parameters

FieldRequiredDefault / bounds
filesource formPath; file_path is accepted as an alias.
symbolssource formEntries are [symbol_name, line]; line is a 1-based integer.
workspace_rootnoActive workspace routing.
handleshandle formRegistered 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.

jump, extract, line_context