connectSource
Connects a supported source and runs a bounded first backfill into the graph, with dry-run preview and item/extraction caps to control untrusted ingestion.
Instructions
Connect a source and run a bounded first backfill into the graph. Give a connector (local-git, claude-chats, or granola) and, for the file-based ones, repoPath (granola uses a stored API key instead); optionally scope (personal|team, default personal), dryRun (preview + count without writing), maxItems, and maxExtractionCalls. Ingested content is UNTRUSTED: facts land proposed and capped, never superseding your own. Returns a run report with itemsApplied/Skipped and a jobUid. Refuses project scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Scope to ingest into. Defaults to personal. Project scope is refused: ingested external content is sensitive and project is plaintext. | |
| dryRun | No | Preview only: validate the source and count would-be items WITHOUT writing anything (the consent gate). | |
| maxItems | No | Cap on items considered this run (backfill bound). Defaults to 500. | |
| repoPath | No | Source locator for file-based connectors: a local git repository path (local-git), or an export file path (claude-chats: a .zip bundle or a conversations.json). Omit for granola, which authenticates with a keychain API key (set it via 'maz source add granola'). | |
| connector | Yes | Source connector name. Supported: local-git, claude-chats, granola. | |
| maxExtractionCalls | No | Cap on episodes appended this run, each one downstream extraction. Defaults to 500. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | ||
| jobUid | No | Job UID; pass to listJobs / cancelJob to track or cancel a long backfill. | |
| streams | No | ||
| connector | Yes | ||
| itemsApplied | Yes | Items turned into episodes (or, in a dry run, that WOULD be). | |
| itemsSkipped | Yes | Items skipped because their content hash was unchanged (idempotent re-ingest). | |
| episodesAppended | Yes |