data_share
Share (or with remove=True, unshare) a datastore with another oto user.
The recipient accesses it with their own oto account.
Identify the recipient by email, or by recipient_sub when one address
carries several accounts — an ambiguous address is REFUSED, never guessed.
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": {
"datastore": "<datastore>"
},
"name": "data_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| No | email of the recipient oto user. | ||
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| remove | No | True = revoke access instead of granting it. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| datastore | Yes | datastore to (un)share (must be owned by you). | |
| permission | No | 'read' or 'write' (default write) — when sharing. | read |
| recipient_sub | No | the recipient's `sub`, when `email` is ambiguous. |