Change a data source's field mapping
update_data_source_mappingReplace the field mapping on a connected data source — for when the wrong field shows in a section (a blank price, the wrong heading). field_mapping REPLACES the old one, so include every row to keep; {} clears it. row_descriptor says which fields identify one item (idField and labelField required; imageField, linkField, subtitleField optional). The address, schedule and section are untouched. Republish or sync for it to show.
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": {
"site_id": "<site_id>",
"data_source_id": "<data_source_id>",
"field_mapping": "<field_mapping>"
},
"name": "update_data_source_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| field_mapping | Yes | { "<source field>": "<section field>" }; source keys may be dot-paths, targets are flat field names | |
| data_source_id | Yes | The source, from list_data_sources | |
| row_descriptor | No |