lean_get_widget_source
Retrieve JavaScript source for a widget using its hash to inspect custom rendering logic and understand how it works.
Instructions
Get JavaScript source of a widget by hash. Useful for understanding custom widget rendering logic. Returns full JS module - 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>",
"javascript_hash": "<javascript_hash>"
},
"name": "lean_get_widget_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to Lean file | |
| javascript_hash | Yes | javascriptHash from a widget instance |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Widget source data including JavaScript module |