Accept
acceptRedeem an invite link or grant code to unlock access to a shared knowledge base, enabling subsequent search and read operations on that person's corpus.
Instructions
ACCEPT an invitation to search somebody else's knowledge base.
Reach for this the moment the user pastes an Opyt invite link or a grant code, or says
someone shared their knowledge base with them. One call and it is done: from then on the
search / open / aggregate tools take kb='<name>' and read that person's corpus, with
every result attributed to them.
SINGLE-PHASE on purpose — there is no preview. A grant code buys exactly one reader token and then dies, so checking it would spend it, and pasting an invite is already the yes.
Pass whatever the user gave you: the whole link, the fragment, or the bare code. The code is found inside any of them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | OPTIONAL — what `kb=` should call this knowledge base locally. Leave it out and the owner's own name is used. Pass one only if the user asks for a specific name. | |
| invite | Yes | the invite link or grant code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||