add_widget_to_page
Add a grid, chart, form, or card widget to an existing Grist page by specifying the page, table, and widget type.
Instructions
Add a widget to an existing page.
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": {
"page_name": "<page_name>",
"table_id": "<table_id>",
"type": "<type>"
},
"name": "add_widget_to_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Widget type: grid (spreadsheet), card (single record), card_list (scrollable cards), chart, form, custom | |
| title | No | Widget title | |
| doc_id | No | Document ID | |
| group_by | No | Group-by columns (for summary table) | |
| table_id | Yes | Table to display | |
| page_name | Yes | Name of the existing page | |
| chart_type | No | Chart type (for chart widgets) | |
| link_column | No | Column for reference-based linking | |
| chart_options | No | Chart options | |
| link_to_widget | No | Title or table ID of an existing widget on this page to link to |