Refresh data
refresh_dataPull fresh content now instead of at the next scheduled refresh.
When to use:
Before an announcement, so menus and prices are current; after someone edits a sheet that a creative repeats over; after changing a web link's crop with update_items, to see the result.
When NOT to use:
Changing a feed's or link's settings: use update_items. A screen that has not picked up a change, or is frozen: use refresh_screens.
What to know:
Settings never change. A failing feed is reported in the result, not thrown. Screens showing the data update when a sync succeeds. Needs integration.edit for feeds, media.edit for a web link.
A sheet published to the web changes on Google's side up to about 5 minutes after an edit, so a sync straight after an edit can still read the old rows: synced true says the sync ran, not that the edit arrived. Check rowCount with get_items and sync again after a few minutes if it is old.
Parameters:
Pass exactly one; none or two is an error.
dataSourceId: one ds_… feed from list_items kind data_sources.
allDataSources: true syncs every feed you can edit, one after another; one failure does not stop the rest; limited to 5 calls a minute.
webLinkId: one med_… web link (list_items kind media, mediaKind web); renders a new snapshot.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "refresh_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webLinkId | No | The web link whose picture is taken again. Ids come from list_items kind media. | |
| dataSourceId | No | The data source to sync now. Ids come from list_items kind data_sources. | |
| allDataSources | No | Sync every data source in the workspace, in place of one id. | |
| syncedFolderId | No | A synced cloud folder (list_items kind synced_folders): copy its new files in now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | allDataSources: how many synced. | |
| error | No | One feed: why it did not sync. | |
| total | No | allDataSources: how many feeds were tried. | |
| failed | No | allDataSources: how many failed. | |
| queued | No | Web link: true when the new picture is still being made; false when it is ready. | |
| synced | No | One feed: true when it synced; false with error set when it did not. | |
| rendered | No | Web link: true when the request was accepted. | |
| webLinkId | No | Web link: the page that was asked to render again. | |
| dataSourceId | No | One feed: the data source that was synced. |