Components Fields
components_fieldsUpdates a Data Studio component's primary field lists and chart-local display names via native setters, with preview and validation; omit a role to keep it or pass [] to clear it.
Instructions
Replace primary field lists and chart-local display names with native setters.
Omit a role to keep it; [] requests clearing it, subject to native validation. Dimension-filter controls use native controlField/filterMetric bindings. Fields use names from datasource_get and metrics need explicit aggregation. Sources and source field definitions are unchanged. Set concept_name to an existing qt_* name from page_get to retain its ID and unmentioned metadata; otherwise creates a fresh chart-local concept. Independent sort dependencies are retained by Google, even when their fields are no longer visible. Preview returns the full updated components for review. Loaded static ungrouped components only; unsupported preset/UI dependencies are rejected. Formula selections use expression instead of name and run formula_validate before writing. Aggregate expressions require aggregation=7 (AUTO); row formulas need an explicit outer aggregation when used as metrics. Formula writes currently require identical draft/published datasource definitions. Other field roles, drill-down and datasource switching remain unsupported.
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>",
"selections": "<selections>",
"expected_page_fingerprint": "<expected_page_fingerprint>"
},
"name": "components_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| page_id | Yes | ||
| report_id | No | ||
| selections | Yes | ||
| expected_page_fingerprint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||