Sync records from a knowledge source
knowledge_source_syncSync records from a registered source by ingesting local files or public URLs, parsing untrusted content, deduplicating by content hash, preserving provenance, and previewing with dryRun.
Instructions
Ingest records from a registered source. LOCAL mode reads a workspace file (JSON/JSONL/YAML-ish); REMOTE mode fetches raw text (GitHub raw supported) when public fetch is enabled. All content is treated as UNTRUSTED and only parsed, never executed. Records are deduplicated by content hash and carry provenance. dryRun previews without writing.
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": {
"sourceId": "<sourceId>",
"urlOrPath": "<urlOrPath>"
},
"name": "knowledge_source_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview what would be ingested without writing. | |
| maxItems | No | Maximum records to ingest (default 50). | |
| sourceId | Yes | Registered source id (see knowledge_source_registry). | |
| urlOrPath | Yes | Workspace-relative path, or an https URL (GitHub raw supported). |