Connect sources
sources_writeConnect GitHub or Google Drive and sync from it. Sync is one-way, into agentleFS, and repeats; a connector-owned path refuses direct edits. Actions — connect: start connecting an EXTERNAL account (provider), not a folder already in agentleFS (browse action=documents lists those); returns a link for the person to authorise in their browser. sync: point one repository (repo_owner, repo_name, branch) or Drive folder (folder_id) of a connected account at a folder here (location). vote: vote for a connector that does not exist yet (connector, why); one vote per person, shared with their agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | vote: what you would do with it, in one line (at most 200 characters); recorded with the vote | |
| action | Yes | what to do; each action takes the arguments its line names | |
| branch | No | sync: GitHub only: the branch to follow (default: the repo default) | |
| account | No | sync: the connected account, exactly as browse action=sources prints it (the installation or account ref) | |
| location | No | sync: the FOLDER this source writes into, whole path from the workspace root, e.g. "handbook" or "handbook/vendor" | |
| provider | No | connect: which source to connect: github, or gdrive for Google Drive · sync: which connected account this source uses | |
| connector | No | vote: the product to connect, e.g. Notion | |
| folder_id | No | sync: Google Drive only: the Drive folder id to pull | |
| repo_name | No | sync: GitHub only: the repository name | |
| repo_owner | No | sync: GitHub only: the repository owner | |
| idempotency_key | No | Any unique string you choose for this write, e.g. a UUID. If you retry the call with the same key and the same arguments, the first answer is returned and nothing is done twice. Reusing a key for a different request is refused. Keys are kept 24 hours. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | the answer as prose, for an action that answers in prose | |
| vote | No | ||
| action | Yes | the action that answered | |
| wanted | No | ||
| available | No |