get_custom_widget
Retrieve a custom widget's complete source code, default model, events, name, and grid position using its ID. Errors if the widget is not a custom widget.
Instructions
Return a Custom Widget's full source (srcDoc html/css/js), defaultModel,
events, name, and grid position. Errors if the id is not a CUSTOM_WIDGET.
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": {
"widget_id": "<widget_id>"
},
"name": "get_custom_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_id | Yes |