lean_file_outline
Extract a Lean file's imports and declarations with type signatures as a token-efficient outline, enabling quick codebase analysis and symbol lookup.
Instructions
Get imports and declarations with type signatures. Token-efficient.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "lean_file_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute or project-root-relative path to Lean file | |
| max_declarations | No | Max declarations to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imports | No | Import statements | |
| declarations | No | Top-level declarations | |
| total_declarations | No | Total count (set when truncated) |