elaichi__toolbox__share
Grant a person, a team, or the whole organization access to a toolbox at one of three levels: "view" (see it), "use" (also RUN its tools), "edit" (also change it). grantee_id is required when grantee_type is "user" or "team" and must be omitted for "org" — the schema cannot express that conditional, so check it yourself. Re-sharing to the same grantee updates the level rather than adding a second grant; to take access away use toolbox.unshare, which identifies the grant the same way. "use" DELEGATES: the grantee runs tools through each entry’s pinned connection under that entry’s DELEGATOR’s own authority (the editor who pinned it), never their own — and that reaches connections pinned directly AND connections reached through a synthetic entry’s steps. The response repeats the toolbox’s delegation summary, a bounded rollup of what the grantee can now run through: say what it discloses in your own words rather than pasting ids. Returns the ACL entry plus { toolbox_id, delegation }; for a "user" share the entry also carries grantee: { id, name, email }, so you can confirm by name who was granted access (a "team" or "org" share has no grantee).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Stored toolbox id (`tbx_…`) from toolbox.list. | |
| level | Yes | "view" = see it, "use" = also run its tools (delegated), "edit" = also change it. | |
| grantee_id | No | A USER id (`usr_…`, from member.list) when grantee_type is "user", or a TEAM id (`team_…`, from team.list) when it is "team". Required for both despite not being listed in `required`; omit it entirely for "org". | |
| grantee_type | Yes | Who is being granted access. |