integrations_sync_knowledge
Refresh a knowledge collection from an integration's endpoints, for content too large to return in a tool response (a 300KB+ catalogue an agent could never fit in one call). Pass sources + collection to configure and run in one step — they are stored on the integration, so later runs need only integration_id. Every run is a FULL refresh; a source whose rendered text is unchanged is skipped (reported unchanged) rather than re-uploaded. Returns a per-source report: created / updated / unchanged / no_records / error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Re-upload and re-index every source even when its rendered text is unchanged. Use after a fix BELOW the text — chunking, extraction, embeddings — which the content digest cannot see (without this the only repair was deleting the synced files by hand). | |
| sources | No | Sources to store on the integration and then sync. OMIT to re-run whatever is already stored. REPLACES the stored list wholesale — pass every source you want, not just a new one, or the omitted ones stop syncing. Each item: {operation_id (from integrations.get_endpoints), arguments? (e.g. {"locale": "ru"}), title?, spec, endpoint?}. `endpoint` {method, path} lets the sync call an operation NOT registered on the integration (kept off the agent tool surface — e.g. a 300KB catalogue). `spec` is the projection: {records (REQUIRED dotted path to the row list), envelopes?, recurse?, title?, body?, meta?, drop?, max_chars?}. Same operation with different `arguments` is a separate document, which is how one endpoint serves four locales. | |
| collection | No | Knowledge collection to publish into, created if absent. Required when `sources` is given; ignored otherwise. | |
| description | No | Description for a newly created collection. Optional. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| integration_id | Yes | Integration id (from integrations.list) to sync. |