cairn_local_set_consent
Record the permission the user has ALREADY granted in chat, so later visits can search and contribute without asking again. This tool grants nothing: never call it before the user answers. persist_identity=true also stores the Cairn-only credential in private storage (needed to keep the same participant across restarts). Re-record to change or narrow it; pass mode this_action to stop automatic contributions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | this_action: the user allowed just this once. ongoing: the user allowed it for later visits too. | |
| scope | Yes | What the permission covers; only a2a_source_review exists. | |
| max_per_visit | No | The most contributions the user allowed per visit (1 to 5). | |
| persist_identity | No | Whether the user allowed keeping this agent's Cairn identity in private local storage. |