add_org_source
After an account is connected, point one repository or Drive folder at a folder here, so its documents sync in. The destination is a folder you can write to — create_org_folder first if it does not exist. Call list_org_sources afterwards to confirm it ran. Sync is ONE-WAY, from the source into agentleFS, and it repeats: the source is polled and the destination folder is brought up to date. Documents you write here are not pushed back to the repository, and a connector-owned path refuses direct edits rather than having them silently overwritten on the next run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Bearer token identifying the principal. Usually omitted — supplied by the transport (HTTP Authorization header or the server's AGENTLEFS_TOKEN env). Only pass this to override. | |
| branch | No | GitHub only: the branch to follow (default: the repo default) | |
| account | Yes | the connected account, exactly as list_org_sources prints it (the installation or account ref) | |
| location | Yes | the FOLDER this source writes into, whole path from the workspace root, e.g. "handbook" or "handbook/vendor" | |
| provider | Yes | which connected account this source uses | |
| folder_id | No | Google Drive only: the Drive folder id to pull | |
| repo_name | No | GitHub only: the repository name | |
| repo_owner | No | GitHub only: the repository owner |