Components Create
components_createCreates batches of native preset components on a loaded static page, validating drafts and the expected page fingerprint before a versioned write.
Instructions
Create a batch of native preset components on a loaded static page.
Use native_catalog for type/preset IDs and datasource_get for field names. Metrics require explicit aggregation using the source/editor enum, not a guessed default. Fields accept name or validated expression, plus optional display_name; aggregate expressions require AUTO (7). New components cannot retain concept_name from another component. Primary dimensions/metrics are supported; presets needing other bindings fail native validation. Composite/responsive creation is not yet supported. All drafts are validated before one versioned page write. Preview IDs are provisional. operation_restore removes the added components if no later changes conflict. Does not create datasource/report assets.
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_id": "<page_id>",
"new_components": "<new_components>",
"expected_page_fingerprint": "<expected_page_fingerprint>"
},
"name": "components_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| page_id | Yes | ||
| report_id | No | ||
| new_components | Yes | ||
| expected_page_fingerprint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||