Invite a collaborator
invite_collaboratorInvite someone to collaborate on a doc the user OWNS, by email, so it lands in their docfarm. If they're already a docfarm user the doc appears in their farm immediately; if not, it waits until they sign up with that address, and the result says whether an invite email went out. REQUIRES the collaborator's email AND allow_overwrite (true = their edits overwrite the original; false = their edits fork into a copy they own, auto-shared back to the inviter). If you don't have the email, ask for it. If the user hasn't said whether the person should edit directly or only make a copy, ask before calling, don't guess. Identify the doc via doc_name (fuzzy-matched) or slug.
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": {
"email": "<email>",
"allow_overwrite": "<allow_overwrite>"
},
"name": "invite_collaborator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Share-link slug or full URL. Alternative to doc_name. | |
| Yes | Email address of the person to invite. | ||
| account | No | Email address of the farm to act on. Omit for the signed-in farm. Only a connected account is accepted; call list_accounts to see which. | |
| doc_name | No | Name of the doc to share. | |
| allow_overwrite | Yes | true = collaborator's edits overwrite the original; false = edits fork into a copy they own (auto-shared back to the inviter). |