lean_get_widgets
Fetch raw panel widgets at a specified position in a Lean file, including proof visualizations, #html, and custom widgets. Returns the raw data for further processing.
Instructions
Get panel widgets at a position (proof visualizations, #html, custom widgets). Returns raw widget data - may be large.
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>",
"line": "<line>",
"column": "<column>"
},
"name": "lean_get_widgets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-indexed) | |
| column | Yes | Column number (1-indexed) | |
| file_path | Yes | Absolute path to Lean file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widgets | No | Widget instances (id, name, range, props) |