inspect
Inspect a Python symbol by its dotted-path handle to get its kind, signature, location, and docstring. Quickly identify what a symbol is without code browsing.
Instructions
Python: Inspect a canonical handle and return a structural Node.
The "what is this?" operation. Returns the symbol's kind, location, signature, docstring, and kind-dependent fields. Cheap by default — no source content, no exhaustive enumerations. Edge counts and highlights come in later phases.
Args: handle: Canonical Python dotted-name string (from resolve/resolve_at). project_path: Project root path (default: current directory)
Returns: Node dict with universal fields (handle, kind, scope, location, docstring, edge_counts={}) plus kind-dependent fields: - class: signature (constructor), superclasses (list of Handle strings) - function/method: signature, parameters, return_type?, is_async, is_classmethod, is_staticmethod - module: is_package, package? - attribute/property/variable: type?, default? (simple literals only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | ||
| project_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||