---
title: "RPC: Request"
description: "121 entries."
canonical: "https://klav.everdoc.dev/stable/reference/rpc/request"
channel: "stable"
---

# RPC: Request

> OmarAlex24/klav · channel `stable` · v0.15.1 @ [`034e81b52d1b`](https://github.com/OmarAlex24/klav/tree/034e81b52d1b693c65ff95181cd555c6734bc8e8) · 2026-12-04 · generated by Everdoc from source (no LLM).

121 entries.

<a id="rpc-request-add_to_task"></a>

## `Request.add_to_task`

«Add to the task»: adds a pending approval request to the agent's running task and approves it once. Asks for presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:404](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L404)
- Handlers: 3 · Callers: 3
- Method: `add_to_task` · transport unix-socket
- Input: `{ approval: string; digest: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/agent.rs:1797](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1797), [crates/klav-daemon/src/presence.rs:100](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L100), [crates/klav-daemon/src/server.rs:2428](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2428), [crates/klav-daemon/src/server.rs:3823](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3823), [crates/klav-daemon/src/server.rs:5048](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5048), … +1

<a id="rpc-request-agent_exposure"></a>

## `Request.agent_exposure`

What an agent saw, from its grant and the audit log.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:447](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L447)
- Handlers: 2 · Callers: 2
- Method: `agent_exposure` · transport unix-socket
- Input: `{ agent: AgentId }`
- Used at: [crates/klav-cli/src/commands/agent.rs:55](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L55), [crates/klav-daemon/src/presence.rs:189](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L189), [crates/klav-daemon/src/server.rs:5159](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5159), [crates/klav-ffi/src/daemon.rs:1641](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1641)

<a id="rpc-request-agent_labels"></a>

## `Request.agent_labels`

Person-owned labels and machine/host notes for agents (ADR 0047).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:336](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L336)
- Handlers: 3 · Callers: 3
- Method: `agent_labels` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/agent.rs:709](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L709), [crates/klav-daemon/src/presence.rs:170](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L170), [crates/klav-daemon/src/server.rs:4450](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4450), [crates/klav-daemon/src/server.rs:4549](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4549), [crates/klav-daemon/src/server.rs:4893](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4893), … +1

<a id="rpc-request-agent_passkey_arm"></a>

## `Request.agent_passkey_arm`

An agent uses the passkey of a login in the person's browser (ADR 0020 §9), after `POST /v1/agent/access` with `passkey`: `klavd` checks the request the agent signed and its task on its own, then arms one use in tab `tab` for 60 s. If the page there already waits for a passkey of that site, the extension uses it at once. Answer: [`PasskeyArmed`], never the assertion. Needs `klavd` unlocked; a locked `klavd` says `locked` and does not ask the person.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:981](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L981)
- Handlers: 2 · Callers: 1
- Method: `agent_passkey_arm` · transport unix-socket
- Input: `{ tab: string; step: PasskeyArmStep }`
- Used at: [crates/klav-daemon/src/presence.rs:134](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L134), [crates/klav-daemon/src/server.rs:3655](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3655), [crates/klav-sdk/src/passkeys.rs:154](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-sdk/src/passkeys.rs#L154)

<a id="rpc-request-agent_passkey_use"></a>

## `Request.agent_passkey_use`

The extension answers a page's sign-in with the use an agent armed in that tab ([`Event::PasskeyArm`]): `klavd` signs with UV (the task's approval is the verification, ADR 0020 §8) and without the person's surface. Only from the extension's connection the use was armed for, once, before it expires, and for the armed site and login. Answer: the assertion, like `passkey_get`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:993](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L993)
- Handlers: 2 · Callers: 0
- Method: `agent_passkey_use` · transport unix-socket
- Input: `{ tab_id: number; origin: string; rp_id?: string; challenge: string; token: SecretText }`
- Used at: [crates/klav-daemon/src/presence.rs:135](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L135), [crates/klav-daemon/src/server.rs:3336](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3336)

<a id="rpc-request-agent_revocations"></a>

## `Request.agent_revocations`

The revocations whose key change was asked for and is not finished, from this device's sealed record (F4): agent, projects, rotated, pending, grants still to issue again and the last error. A revocation without a key change asked for never shows. Answer: `[PendingRevocation]`. No presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:472](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L472)
- Handlers: 2 · Callers: 2
- Method: `agent_revocations` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/agent.rs:369](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L369), [crates/klav-daemon/src/presence.rs:191](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L191), [crates/klav-daemon/src/server.rs:5160](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5160), [crates/klav-ffi/src/daemon.rs:1696](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1696)

<a id="rpc-request-agent_rotate_begin"></a>

## `Request.agent_rotate_begin`

An agent starts changing a login's password in the person's browser (ADR 0022 §5, steps 2–5), after `POST /v1/agent/rotations`: `klavd` checks the request the agent signed and its task, asks the tab for the field's rules, stores the new password as pending in the item and only then fills «current» with the old one and «new» (and «confirm») with the new one. Answer: `{filled, pending_id}`, never a value. Needs `klavd` unlocked.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1013](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1013)
- Handlers: 2 · Callers: 1
- Method: `agent_rotate_begin` · transport unix-socket
- Input: `{ tab: string; step: RotationStep; submit?: boolean }`
- Used at: [crates/klav-daemon/src/presence.rs:136](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L136), [crates/klav-daemon/src/server.rs:3652](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3652), [crates/klav-sdk/src/rotate.rs:352](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-sdk/src/rotate.rs#L352)

<a id="rpc-request-agent_rotate_cancel"></a>

## `Request.agent_rotate_cancel`

The site refused it, or the agent gave up (`rotate_cancel`): the current one stays and the pending one goes to the history, marked unconfirmed. Answer: `{ok: true}`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1032](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1032)
- Handlers: 2 · Callers: 2
- Method: `agent_rotate_cancel` · transport unix-socket
- Input: `{ step: RotationStep }`
- Used at: [crates/klav-daemon/src/presence.rs:138](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L138), [crates/klav-daemon/src/server.rs:2448](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2448), [crates/klav-daemon/src/server.rs:5659](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5659), [crates/klav-sdk/src/rotate.rs:588](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-sdk/src/rotate.rs#L588)

<a id="rpc-request-agent_rotate_confirm"></a>

## `Request.agent_rotate_confirm`

The site took the new password (`rotate_confirm`, step 7), after `POST /v1/agent/rotations/{id}/confirm`: it becomes current and the old one goes to the history. Answer: `{ok: true}`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1025](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1025)
- Handlers: 2 · Callers: 2
- Method: `agent_rotate_confirm` · transport unix-socket
- Input: `{ step: RotationStep }`
- Used at: [crates/klav-daemon/src/presence.rs:137](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L137), [crates/klav-daemon/src/server.rs:2447](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2447), [crates/klav-daemon/src/server.rs:5650](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5650), [crates/klav-sdk/src/rotate.rs:586](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-sdk/src/rotate.rs#L586)

<a id="rpc-request-agent_rotate_pending"></a>

## `Request.agent_rotate_pending`

Whether the item's pending password is this change's, asked before the agent sends a confirm or a cancel to the server (read only; `klav_client::Unlocked::rotation_pending`). The step carries a signed request of its own, `POST /v1/agent/rotations/{id}/pending` (a path the server has no route for), which `klavd` checks as for a step and uses up. Answer: `{pending}`. An older `klavd` answers `bad_request`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1043](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1043)
- Handlers: 2 · Callers: 1
- Method: `agent_rotate_pending` · transport unix-socket
- Input: `{ step: RotationStep }`
- Used at: [crates/klav-daemon/src/presence.rs:139](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L139), [crates/klav-daemon/src/server.rs:5665](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5665), [crates/klav-sdk/src/rotate.rs:452](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-sdk/src/rotate.rs#L452)

<a id="rpc-request-agents"></a>

## `Request.agents`

Stop the daemon. The account's agents (pending, active, denied, revoked).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:334](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L334)
- Handlers: 3 · Callers: 6
- Method: `agents` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/agent.rs:281](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L281), [crates/klav-daemon/src/presence.rs:169](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L169), [crates/klav-daemon/src/server.rs:2374](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2374), [crates/klav-daemon/src/server.rs:4449](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4449), [crates/klav-daemon/src/server.rs:4548](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4548), … +4

<a id="rpc-request-approval_statement"></a>

## `Request.approval_statement`

The exact SQL of a pending SQL statement's approval (ID or unique prefix; ADR 0052 §9.6), opened from its sealed statement and escaped for a terminal, or why it can only be denied.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:367](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L367)
- Handlers: 2 · Callers: 1
- Method: `approval_statement` · transport unix-socket
- Input: `{ approval: string }`
- Used at: [crates/klav-cli/src/commands/agent.rs:1536](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1536), [crates/klav-daemon/src/presence.rs:174](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L174), [crates/klav-daemon/src/server.rs:4941](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4941)

<a id="rpc-request-approvals"></a>

## `Request.approvals`

Approval requests of agents (pending, or `all` recent ones).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:360](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L360)
- Handlers: 3 · Callers: 5
- Method: `approvals` · transport unix-socket
- Input: `{ all?: boolean }`
- Used at: [crates/klav-cli/src/commands/agent.rs:1350](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1350), [crates/klav-cli/src/commands/agent.rs:1574](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1574), [crates/klav-daemon/src/presence.rs:173](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L173), [crates/klav-daemon/src/server.rs:2373](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2373), [crates/klav-daemon/src/server.rs:4451](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4451), … +3

<a id="rpc-request-approve_agent"></a>

## `Request.approve_agent`

Approves an agent or replaces its grant. Asks for presence first: Touch ID, or the master password in `password` (ADR 0014).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:347](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L347)
- Handlers: 3 · Callers: 3
- Method: `approve_agent` · transport unix-socket
- Input: `{ agent: AgentId; grant: GrantRequest; pairing_code: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/agent.rs:1019](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1019), [crates/klav-daemon/src/presence.rs:97](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L97), [crates/klav-daemon/src/server.rs:2424](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2424), [crates/klav-daemon/src/server.rs:3812](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3812), [crates/klav-daemon/src/server.rs:4903](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4903), … +1

<a id="rpc-request-attach"></a>

## `Request.attach`

Store a file in a `file` field.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:322](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L322)
- Handlers: 2 · Callers: 3
- Method: `attach` · transport unix-socket
- Input: `{ query: string; field: string; file_name: string; content: SecretBytes }`
- Used at: [crates/klav-cli/src/backend.rs:684](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L684), [crates/klav-daemon/src/presence.rs:168](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L168), [crates/klav-daemon/src/server.rs:2417](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2417), [crates/klav-daemon/src/server.rs:4818](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4818), [crates/klav-ffi/src/daemon.rs:1236](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1236)

<a id="rpc-request-audit_log"></a>

## `Request.audit_log`

The audit log, filtered (`klav log`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:751](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L751)
- Handlers: 2 · Callers: 2
- Method: `audit_log` · transport unix-socket
- Input: `{ filter?: LogFilter }`
- Used at: [crates/klav-cli/src/commands/log.rs:50](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/log.rs#L50), [crates/klav-daemon/src/presence.rs:210](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L210), [crates/klav-daemon/src/server.rs:5629](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5629), [crates/klav-ffi/src/daemon.rs:1828](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1828)

<a id="rpc-request-audit_reset"></a>

## `Request.audit_reset`

`klav log reset` (ADR 0033 §8.4): forgets this device's copy of the audit log, in memory too, and the head it verified, for a server restored from a backup the person trusts. Also while locked; no network. Answer: the files removed (`audit-chain.bin`, `audit-head.json`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:806](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L806)
- Handlers: 2 · Callers: 1
- Method: `audit_reset` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/log.rs:319](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/log.rs#L319), [crates/klav-daemon/src/presence.rs:220](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L220), [crates/klav-daemon/src/server.rs:3664](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3664)

<a id="rpc-request-audit_status"></a>

## `Request.audit_status`

How far this device downloaded and verified the audit log («Verified up to event #N»), without asking the server. Answer: [`klav_client::audit::ChainStatus`].

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:800](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L800)
- Handlers: 3 · Callers: 4
- Method: `audit_status` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/log.rs:57](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/log.rs#L57), [crates/klav-daemon/src/presence.rs:219](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L219), [crates/klav-daemon/src/server.rs:2391](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2391), [crates/klav-daemon/src/server.rs:4446](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4446), [crates/klav-daemon/src/server.rs:4542](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4542), … +2

<a id="rpc-request-autofill"></a>

## `Request.autofill`

The values of one item to type into a page (browser extension). A login whose URLs do not match `url` is refused (`denied`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:263](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L263)
- Handlers: 6 · Callers: 2
- Method: `autofill` · transport unix-socket
- Input: `{ item: string; url: string; part?: FillPart; chosen?: boolean; password?: SecretText }`
- Used at: [crates/klav-daemon/src/presence.rs:94](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L94), [crates/klav-daemon/src/presence.rs:248](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L248), [crates/klav-daemon/src/server.rs:2382](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2382), [crates/klav-daemon/src/server.rs:4233](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4233), [crates/klav-daemon/src/server.rs:4332](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4332), … +3

<a id="rpc-request-browser_fill"></a>

## `Request.browser_fill`

Types an agent's values into that tab, if it is still on `host` (ADR 0017). The values never come back. The agent brings the values, decrypted under its own grant, but the connection's presence needs the unlocked session (ADR 0041 §3.1): locked, it answers `locked`, after a pause's `agents_paused`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:943](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L943)
- Handlers: 4 · Callers: 1
- Method: `browser_fill` · transport unix-socket
- Input: `{ tab: string; host: string; agent: string; agent_id?: AgentId; reason: string; item?: ItemId; kind: ItemKind; fields: FillValue[]; selectors?: FieldSelector[]; submit?: boolean }`
- Used at: [crates/klav-daemon/src/presence.rs:140](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L140), [crates/klav-daemon/src/server.rs:2076](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2076), [crates/klav-daemon/src/server.rs:3335](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3335), [crates/klav-daemon/src/server.rs:5708](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5708), [crates/klav-sdk/src/browser.rs:816](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-sdk/src/browser.rs#L816)

<a id="rpc-request-browser_tab"></a>

## `Request.browser_tab`

The tab an agent would fill: the active tab of the focused browser with the extension attached ([`BrowserTab`]). Works locked.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:937](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L937)
- Handlers: 4 · Callers: 3
- Method: `browser_tab` · transport unix-socket
- Used at: [crates/klav-daemon/src/presence.rs:144](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L144), [crates/klav-daemon/src/server.rs:2075](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2075), [crates/klav-daemon/src/server.rs:3334](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3334), [crates/klav-daemon/src/server.rs:5707](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5707), [crates/klav-sdk/src/browser.rs:772](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-sdk/src/browser.rs#L772), … +2

<a id="rpc-request-cancel_account_deletion"></a>

## `Request.cancel_account_deletion`

Cancels the deletion of the account the person asked for (ADR 0037 §2), after Touch ID or the master password, like [`Request::ResumeAgents`] (ADR 0037 A2): canceling brings the agents back. Answer: `{ "canceled": bool }` (`false`: there was none).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:745](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L745)
- Handlers: 3 · Callers: 2
- Method: `cancel_account_deletion` · transport unix-socket
- Input: `{ password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/deletion.rs:194](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/deletion.rs#L194), [crates/klav-daemon/src/presence.rs:123](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L123), [crates/klav-daemon/src/server.rs:3838](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3838), [crates/klav-daemon/src/server.rs:5621](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5621), [crates/klav-ffi/src/daemon.rs:979](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L979)

<a id="rpc-request-confirm_presence"></a>

## `Request.confirm_presence`

Touch ID only, to confirm the person is there (ADR 0037 §1): opens this Mac's Secure Enclave key, which takes only the enrolled fingers and never the Mac's password, and drops what it gives back. It deletes nothing, needs no unlock and takes no password: the caller (the Mac app, the CLI) asks for the master password next and talks to the server itself. The prompt's words are `klavd`'s, for the `purpose`. Answer: `{ "ok": true }`, or `biometry_unavailable` / `biometry_failed`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:736](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L736)
- Handlers: 2 · Callers: 2
- Method: `confirm_presence` · transport unix-socket
- Input: `{ purpose: PresencePurpose }`
- Used at: [crates/klav-cli/src/commands/deletion.rs:104](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/deletion.rs#L104), [crates/klav-daemon/src/presence.rs:124](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L124), [crates/klav-daemon/src/server.rs:3663](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3663), [crates/klav-ffi/src/daemon.rs:941](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L941)

<a id="rpc-request-create"></a>

## `Request.create`

Create an item.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:198](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L198)
- Handlers: 3 · Callers: 3
- Method: `create` · transport unix-socket
- Input: `{ item: NewItem }`
- Used at: [crates/klav-cli/src/backend.rs:459](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L459), [crates/klav-daemon/src/native.rs:279](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/native.rs#L279), [crates/klav-daemon/src/presence.rs:161](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L161), [crates/klav-daemon/src/server.rs:2412](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2412), [crates/klav-daemon/src/server.rs:4732](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4732), … +1

<a id="rpc-request-create_project"></a>

## `Request.create_project`

Create a project.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:104](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L104)
- Handlers: 2 · Callers: 3
- Method: `create_project` · transport unix-socket
- Input: `{ vault?: string; name: string }`
- Used at: [crates/klav-cli/src/backend.rs:385](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L385), [crates/klav-daemon/src/presence.rs:155](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L155), [crates/klav-daemon/src/server.rs:2409](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2409), [crates/klav-daemon/src/server.rs:4648](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4648), [crates/klav-ffi/src/daemon.rs:1106](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1106)

<a id="rpc-request-create_vault"></a>

## `Request.create_vault`

Create a vault.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:99](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L99)
- Handlers: 2 · Callers: 3
- Method: `create_vault` · transport unix-socket
- Input: `{ name: string }`
- Used at: [crates/klav-cli/src/backend.rs:361](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L361), [crates/klav-daemon/src/presence.rs:154](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L154), [crates/klav-daemon/src/server.rs:2408](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2408), [crates/klav-daemon/src/server.rs:4639](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4639), [crates/klav-ffi/src/daemon.rs:1099](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1099)

<a id="rpc-request-decide_approval"></a>

## `Request.decide_approval`

Decides on an approval request (ID or unique prefix). Approving asks for presence like `approve_agent`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:372](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L372)
- Handlers: 4 · Callers: 4
- Method: `decide_approval` · transport unix-socket
- Input: `{ approval: string; approve: boolean; digest: string; lease_secs?: number; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/agent.rs:1884](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1884), [crates/klav-cli/src/commands/agent.rs:1896](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1896), [crates/klav-daemon/src/presence.rs:98](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L98), [crates/klav-daemon/src/presence.rs:175](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L175), [crates/klav-daemon/src/server.rs:2426](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2426), … +3

<a id="rpc-request-decide_task"></a>

## `Request.decide_task`

Approves (with the person's changes) or denies a pending task (ID or unique prefix). Approving asks for presence like `approve_agent`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:392](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L392)
- Handlers: 4 · Callers: 4
- Method: `decide_task` · transport unix-socket
- Input: `{ task: string; approve: boolean; digest: string; choice?: TaskChoice; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/task.rs:153](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L153), [crates/klav-cli/src/commands/task.rs:165](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L165), [crates/klav-daemon/src/presence.rs:99](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L99), [crates/klav-daemon/src/presence.rs:176](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L176), [crates/klav-daemon/src/server.rs:2427](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2427), … +3

<a id="rpc-request-deny_agent"></a>

## `Request.deny_agent`

Denies a pending registration.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:356](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L356)
- Handlers: 2 · Callers: 3
- Method: `deny_agent` · transport unix-socket
- Input: `{ agent: AgentId }`
- Used at: [crates/klav-cli/src/commands/agent.rs:108](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L108), [crates/klav-daemon/src/presence.rs:172](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L172), [crates/klav-daemon/src/server.rs:2446](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2446), [crates/klav-daemon/src/server.rs:5646](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5646), [crates/klav-ffi/src/daemon.rs:1631](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1631)

<a id="rpc-request-deny_secret_request"></a>

## `Request.deny_secret_request`

Denies a pending agent secret request with an account-signed decision.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:440](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L440)
- Handlers: 2 · Callers: 3
- Method: `deny_secret_request` · transport unix-socket
- Input: `{ request: string; digest: string }`
- Used at: [crates/klav-cli/src/commands/secret_request.rs:212](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L212), [crates/klav-daemon/src/presence.rs:188](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L188), [crates/klav-daemon/src/server.rs:2431](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2431), [crates/klav-daemon/src/server.rs:5150](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5150), [crates/klav-ffi/src/daemon.rs:1580](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1580)

<a id="rpc-request-edit"></a>

## `Request.edit`

Edit an item.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:203](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L203)
- Handlers: 3 · Callers: 3
- Method: `edit` · transport unix-socket
- Input: `{ query: string; patch: ItemPatch }`
- Used at: [crates/klav-cli/src/backend.rs:582](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L582), [crates/klav-daemon/src/native.rs:279](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/native.rs#L279), [crates/klav-daemon/src/presence.rs:162](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L162), [crates/klav-daemon/src/server.rs:2413](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2413), [crates/klav-daemon/src/server.rs:4733](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4733), … +1

<a id="rpc-request-end_task"></a>

## `Request.end_task`

Ends a running task («End task»).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:412](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L412)
- Handlers: 2 · Callers: 3
- Method: `end_task` · transport unix-socket
- Input: `{ task: string }`
- Used at: [crates/klav-cli/src/commands/task.rs:121](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L121), [crates/klav-daemon/src/presence.rs:178](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L178), [crates/klav-daemon/src/server.rs:2429](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2429), [crates/klav-daemon/src/server.rs:5067](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5067), [crates/klav-ffi/src/daemon.rs:1589](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1589)

<a id="rpc-request-environment"></a>

## `Request.environment`

One environment: names, origins and what an agent changed, never a value. Answer: [`klav_client::environments::EnvironmentDetail`] or `null` when there is none of that name.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:131](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L131)
- Handlers: 3 · Callers: 3
- Method: `environment` · transport unix-socket
- Input: `{ project?: string; name: string }`
- Used at: [crates/klav-cli/src/backend.rs:816](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L816), [crates/klav-daemon/src/presence.rs:158](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L158), [crates/klav-daemon/src/server.rs:4444](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4444), [crates/klav-daemon/src/server.rs:4536](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4536), [crates/klav-daemon/src/server.rs:4675](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4675), … +1

<a id="rpc-request-environment_import_review"></a>

## `Request.environment_import_review`

The review of `klav env import` (ADR 0032 §6): compares the values in memory with the environment and the vault's fields, so it is gated as a value. Answer: [`klav_client::environments::ImportReview`] list, with no value.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:141](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L141)
- Handlers: 5 · Callers: 2
- Method: `environment_import_review` · transport unix-socket
- Input: `{ project?: string; name: string; variables: [string, SecretText][]; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:837](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L837), [crates/klav-daemon/src/presence.rs:93](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L93), [crates/klav-daemon/src/presence.rs:247](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L247), [crates/klav-daemon/src/server.rs:4241](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4241), [crates/klav-daemon/src/server.rs:4445](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4445), … +2

<a id="rpc-request-environment_save"></a>

## `Request.environment_save`

Saves a change to an environment (ADR 0032 §3.1): one that makes the protection grow reissues the agents' grants first; one that lowers it asks for Touch ID or the master password first. Answer: [`klav_client::environments::EnvironmentSaved`].

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:157](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L157)
- Handlers: 3 · Callers: 2
- Method: `environment_save` · transport unix-socket
- Input: `{ project?: string; name: string; edit: EnvironmentEdit; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:871](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L871), [crates/klav-daemon/src/presence.rs:125](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L125), [crates/klav-daemon/src/server.rs:3841](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3841), [crates/klav-daemon/src/server.rs:4691](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4691), [crates/klav-ffi/src/environments.rs:454](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L454)

<a id="rpc-request-environment_trash"></a>

## `Request.environment_trash`

Moves an environment to the trash; a protected one is first saved unprotected, with presence. Answer: [`klav_client::environments::EnvironmentSaved`].

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:171](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L171)
- Handlers: 3 · Callers: 2
- Method: `environment_trash` · transport unix-socket
- Input: `{ project?: string; name: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:903](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L903), [crates/klav-daemon/src/presence.rs:126](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L126), [crates/klav-daemon/src/server.rs:3841](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3841), [crates/klav-daemon/src/server.rs:4710](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4710), [crates/klav-ffi/src/environments.rs:480](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/environments.rs#L480)

<a id="rpc-request-environments"></a>

## `Request.environments`

The environments of a project, or of every project (ADR 0032 §6). Answer: [`klav_client::environments::EnvironmentListing`] list.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:123](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L123)
- Handlers: 3 · Callers: 3
- Method: `environments` · transport unix-socket
- Input: `{ project?: string }`
- Used at: [crates/klav-cli/src/backend.rs:797](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L797), [crates/klav-daemon/src/presence.rs:157](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L157), [crates/klav-daemon/src/server.rs:4443](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4443), [crates/klav-daemon/src/server.rs:4483](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4483), [crates/klav-daemon/src/server.rs:4672](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4672), … +1

<a id="rpc-request-extension_attach"></a>

## `Request.extension_attach`

Registers this connection as a browser extension that fills pages for agents (sent by the extension through `klav-native-host`). [`EventEnvelope`] lines then arrive on it between responses.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:907](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L907)
- Handlers: 4 · Callers: 0
- Method: `extension_attach` · transport unix-socket
- Input: `{ browser: string }`
- Used at: [crates/klav-daemon/src/presence.rs:95](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L95), [crates/klav-daemon/src/server.rs:2025](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2025), [crates/klav-daemon/src/server.rs:3331](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3331), [crates/klav-daemon/src/server.rs:5704](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5704)

<a id="rpc-request-extension_presence"></a>

## `Request.extension_presence`

The extension's answer to [`Event::Presence`]: the master password the person typed in Klav's own frame (ADR 0041 §3.1, §3.2). Only on the connection the event was sent to. `klavd` checks it against the unlocked session: right, the connection is verified and `{}` comes back; wrong, `wrong_credentials`, and the event keeps waiting for another try. Canceling is an `extension_reply` with an `error`; an `extension_reply` with `ok` never verifies anything.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:929](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L929)
- Handlers: 4 · Callers: 0
- Method: `extension_presence` · transport unix-socket
- Input: `{ event: number; password: SecretText }`
- Used at: [crates/klav-daemon/src/presence.rs:144](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L144), [crates/klav-daemon/src/server.rs:2043](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2043), [crates/klav-daemon/src/server.rs:3333](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3333), [crates/klav-daemon/src/server.rs:5706](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5706)

<a id="rpc-request-extension_reply"></a>

## `Request.extension_reply`

The extension's answer to an event.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:912](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L912)
- Handlers: 4 · Callers: 0
- Method: `extension_reply` · transport unix-socket
- Input: `{ event: number; ok?: unknown; error?: ErrorBody }`
- Used at: [crates/klav-daemon/src/presence.rs:144](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L144), [crates/klav-daemon/src/server.rs:2063](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2063), [crates/klav-daemon/src/server.rs:3332](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3332), [crates/klav-daemon/src/server.rs:5705](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5705)

<a id="rpc-request-fulfill_secret_request"></a>

## `Request.fulfill_secret_request`

Fulfills a pending agent secret request: saves the secret into the vault, optionally grants `klav-proxy` access or links an environment variable (requiring presence when `input.grant_proxy` is true or `input.env_link` is present), and posts the account-signed decision.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:428](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L428)
- Handlers: 5 · Callers: 4
- Method: `fulfill_secret_request` · transport unix-socket
- Input: `{ request: string; input: FulfillSecretRequest; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/secret_request.rs:351](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L351), [crates/klav-cli/src/commands/secret_request.rs:361](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L361), [crates/klav-daemon/src/native.rs:276](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/native.rs#L276), [crates/klav-daemon/src/native.rs:279](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/native.rs#L279), [crates/klav-daemon/src/presence.rs:102](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L102), … +4

<a id="rpc-request-generated_value"></a>

## `Request.generated_value`

The value of one generator history entry.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:820](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L820)
- Handlers: 6 · Callers: 4
- Method: `generated_value` · transport unix-socket
- Input: `{ created_at: number; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:777](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L777), [crates/klav-daemon/src/presence.rs:91](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L91), [crates/klav-daemon/src/presence.rs:245](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L245), [crates/klav-daemon/src/server.rs:2387](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2387), [crates/klav-daemon/src/server.rs:4234](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4234), … +5

<a id="rpc-request-generator_delete"></a>

## `Request.generator_delete`

Deletes generator history entries (and the versions that hold them).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:830](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L830)
- Handlers: 2 · Callers: 3
- Method: `generator_delete` · transport unix-socket
- Input: `{ which: GeneratedSelection }`
- Used at: [crates/klav-cli/src/backend.rs:921](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L921), [crates/klav-daemon/src/presence.rs:223](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L223), [crates/klav-daemon/src/server.rs:2421](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2421), [crates/klav-daemon/src/server.rs:4839](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4839), [crates/klav-ffi/src/daemon.rs:1433](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1433)

<a id="rpc-request-generator_history"></a>

## `Request.generator_history`

The generator history, newest first, without values.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:818](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L818)
- Handlers: 3 · Callers: 5
- Method: `generator_history` · transport unix-socket
- Used at: [crates/klav-cli/src/backend.rs:769](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L769), [crates/klav-daemon/src/presence.rs:222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L222), [crates/klav-daemon/src/server.rs:2386](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2386), [crates/klav-daemon/src/server.rs:4447](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4447), [crates/klav-daemon/src/server.rs:4543](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4543), … +3

<a id="rpc-request-generator_record"></a>

## `Request.generator_record`

Records a generated password in the local outbox (ADR 0022 §2), durably, before the caller types it anywhere. Works offline; the outbox goes to the generator history in the background.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:810](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L810)
- Handlers: 2 · Callers: 3
- Method: `generator_record` · transport unix-socket
- Input: `{ value: SecretText; host?: string }`
- Used at: [crates/klav-cli/src/commands/generate.rs:127](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/generate.rs#L127), [crates/klav-daemon/src/presence.rs:221](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L221), [crates/klav-daemon/src/server.rs:2420](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2420), [crates/klav-daemon/src/server.rs:4829](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4829), [crates/klav-ffi/src/daemon.rs:1403](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1403)

<a id="rpc-request-grant_change_apply"></a>

## `Request.grant_change_apply`

Signs a change shown with `grant_change_prepare`: syncs, verifies the grant in force again and refuses unless `digest` is still the sheet's (F3). Asks for presence (Touch ID, or `password`) only when the change widens, as `klavd` computes it (P8). Answer: `GrantChangeReport`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:492](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L492)
- Handlers: 2 · Callers: 3
- Method: `grant_change_apply` · transport unix-socket
- Input: `{ agent: AgentId; change: GrantChange; digest: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/agent.rs:1119](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1119), [crates/klav-daemon/src/presence.rs:109](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L109), [crates/klav-daemon/src/server.rs:2425](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2425), [crates/klav-daemon/src/server.rs:5170](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5170), [crates/klav-ffi/src/daemon.rs:1750](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1750)

<a id="rpc-request-grant_change_prepare"></a>

## `Request.grant_change_prepare`

The sheet of a change to an active agent's grant: only the differences, which widen, and the digest that binds the sheet to the grant in force and to `change` (F3). Signs nothing. Answer: `GrantChangePreview`. No presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:483](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L483)
- Handlers: 2 · Callers: 2
- Method: `grant_change_prepare` · transport unix-socket
- Input: `{ agent: AgentId; change: GrantChange }`
- Used at: [crates/klav-cli/src/commands/agent.rs:1072](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L1072), [crates/klav-daemon/src/presence.rs:193](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L193), [crates/klav-daemon/src/server.rs:5166](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5166), [crates/klav-ffi/src/daemon.rs:1722](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1722)

<a id="rpc-request-grant_editor"></a>

## `Request.grant_editor`

An active agent's grant in force, in the apps' editor model, or read-only with the reason (F3, F4). Answer: `GrantEditor`. No presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:476](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L476)
- Handlers: 2 · Callers: 1
- Method: `grant_editor` · transport unix-socket
- Input: `{ agent: AgentId }`
- Used at: [crates/klav-daemon/src/presence.rs:192](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L192), [crates/klav-daemon/src/server.rs:5165](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5165), [crates/klav-ffi/src/daemon.rs:1710](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1710)

<a id="rpc-request-health_settings"></a>

## `Request.health_settings`

The health settings of this home (`health.json`): with `breach_check`, turns the breach check on or off first. Answer: `{breach_check, notice}`. Works locked.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1097](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1097)
- Handlers: 3 · Callers: 2
- Method: `health_settings` · transport unix-socket
- Input: `{ breach_check?: boolean }`
- Used at: [crates/klav-daemon/src/presence.rs:233](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L233), [crates/klav-daemon/src/server.rs:2516](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2516), [crates/klav-daemon/src/server.rs:3641](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3641), [crates/klav-ffi/src/daemon.rs:1766](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1766), [crates/klav-ffi/src/daemon.rs:1774](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1774)

<a id="rpc-request-hold"></a>

## `Request.hold`

Declares that this connection's `unlock`, or its first window verification, should last until Klav locks (ADR 0041 §1.2): the held connection. No argument; it grants nothing by itself. Answers `not_supported` until layer 6 turns it on, and always on Linux.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1106](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1106)
- Handlers: 2 · Callers: 1
- Method: `hold` · transport unix-socket
- Used at: [crates/klav-daemon/src/presence.rs:133](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L133), [crates/klav-daemon/src/server.rs:3651](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3651), [crates/klav-ffi/src/presence.rs:367](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/presence.rs#L367)

<a id="rpc-request-import_add"></a>

## `Request.import_add`

Adds an export file (or a Google Authenticator link or QR image) to an import (ADR 0024). Without `session`, starts a new one. A file larger than a message goes in pieces: every piece but the last has `more`. Answer: [`ImportAdded`]. The import lives until `lock`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:859](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L859)
- Handlers: 2 · Callers: 2
- Method: `import_add` · transport unix-socket
- Input: `{ session?: string; name: string; from?: string; data: SecretBytes; more?: boolean }`
- Used at: [crates/klav-cli/src/backend.rs:489](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L489), [crates/klav-daemon/src/presence.rs:226](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L226), [crates/klav-daemon/src/server.rs:4851](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4851), [crates/klav-ffi/src/daemon.rs:1144](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1144)

<a id="rpc-request-import_apply"></a>

## `Request.import_apply`

Imports: creates and merges as the preview said, keeping replaced passwords in the history (`klav_client::import::ImportResult`). The import is forgotten afterwards.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:889](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L889)
- Handlers: 2 · Callers: 3
- Method: `import_apply` · transport unix-socket
- Input: `{ session: string; vault?: string; project?: string }`
- Used at: [crates/klav-cli/src/backend.rs:550](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L550), [crates/klav-daemon/src/presence.rs:228](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L228), [crates/klav-daemon/src/server.rs:2422](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2422), [crates/klav-daemon/src/server.rs:4875](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4875), [crates/klav-ffi/src/daemon.rs:1195](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1195)

<a id="rpc-request-import_cancel"></a>

## `Request.import_cancel`

Forgets an import without importing.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:900](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L900)
- Handlers: 2 · Callers: 2
- Method: `import_cancel` · transport unix-socket
- Input: `{ session: string }`
- Used at: [crates/klav-cli/src/backend.rs:567](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L567), [crates/klav-daemon/src/presence.rs:229](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L229), [crates/klav-daemon/src/server.rs:4888](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4888), [crates/klav-ffi/src/daemon.rs:1222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1222)

<a id="rpc-request-import_preview"></a>

## `Request.import_preview`

What importing would do, without values (`klav_client::import::ImportPreview`). Changes nothing.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:876](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L876)
- Handlers: 2 · Callers: 2
- Method: `import_preview` · transport unix-socket
- Input: `{ session: string; vault?: string; project?: string }`
- Used at: [crates/klav-cli/src/backend.rs:524](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L524), [crates/klav-daemon/src/presence.rs:227](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L227), [crates/klav-daemon/src/server.rs:4863](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4863), [crates/klav-ffi/src/daemon.rs:1171](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1171)

<a id="rpc-request-item_activity"></a>

## `Request.item_activity`

«Who used it» for one item (ADR 0033 §8.1): every event an agent wrote about it, newest first, with how it went. Answer: [`klav_client::activity::ItemActivity`].

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:793](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L793)
- Handlers: 2 · Callers: 1
- Method: `item_activity` · transport unix-socket
- Input: `{ item: string }`
- Used at: [crates/klav-daemon/src/presence.rs:218](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L218), [crates/klav-daemon/src/server.rs:5644](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5644), [crates/klav-ffi/src/daemon.rs:1845](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1845)

<a id="rpc-request-list"></a>

## `Request.list`

List items.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:181](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L181)
- Handlers: 3 · Callers: 5
- Method: `list` · transport unix-socket
- Input: `{ filter: ItemFilter }`
- Used at: [crates/klav-cli/src/backend.rs:427](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L427), [crates/klav-daemon/src/presence.rs:159](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L159), [crates/klav-daemon/src/server.rs:2379](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2379), [crates/klav-daemon/src/server.rs:4434](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4434), [crates/klav-daemon/src/server.rs:4482](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4482), … +3

<a id="rpc-request-local_client_change"></a>

## `Request.local_client_change`

Signs a change to the local MCP client `name`. A new token's digest comes in `change`, never the token. `base_version` and `shown_proxy` are what the preview showed: nothing is signed if either changed. Asks for presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:571](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L571)
- Handlers: 3 · Callers: 2
- Method: `local_client_change` · transport unix-socket
- Input: `{ name: string; change: LocalClientChange; base_version: number; shown_proxy: AgentId; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/client_mcp.rs:231](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/client_mcp.rs#L231), [crates/klav-daemon/src/presence.rs:116](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L116), [crates/klav-daemon/src/server.rs:2439](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2439), [crates/klav-daemon/src/server.rs:3831](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3831), [crates/klav-daemon/src/server.rs:5392](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5392)

<a id="rpc-request-local_client_preview"></a>

## `Request.local_client_preview`

What a change to the local MCP client `name` of the account's proxy would sign (ADR 0049 §3.2), without signing or asking for presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:563](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L563)
- Handlers: 2 · Callers: 1
- Method: `local_client_preview` · transport unix-socket
- Input: `{ name: string; change: LocalClientChange }`
- Used at: [crates/klav-cli/src/commands/client_mcp.rs:199](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/client_mcp.rs#L199), [crates/klav-daemon/src/presence.rs:200](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L200), [crates/klav-daemon/src/server.rs:5388](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5388)

<a id="rpc-request-lock"></a>

## `Request.lock`

Forget the unlocked state now.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:84](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L84)
- Handlers: 2 · Callers: 3
- Method: `lock` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/account.rs:320](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/account.rs#L320), [crates/klav-cli/src/commands/account.rs:520](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/account.rs#L520), [crates/klav-daemon/src/presence.rs:149](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L149), [crates/klav-daemon/src/server.rs:3670](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3670), [crates/klav-ffi/src/daemon.rs:842](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L842)

<a id="rpc-request-mcp_gateway"></a>

## `Request.mcp_gateway`

The account's MCP gateway switch (ADR 0049 §9): `true` or `false`, or `null` from a server older than the gateway.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:581](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L581)
- Handlers: 3 · Callers: 2
- Method: `mcp_gateway` · transport unix-socket
- Used at: [crates/klav-daemon/src/presence.rs:201](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L201), [crates/klav-daemon/src/server.rs:4456](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4456), [crates/klav-daemon/src/server.rs:4555](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4555), [crates/klav-daemon/src/server.rs:5419](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5419), [crates/klav-ffi/src/daemon.rs:1858](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1858)

<a id="rpc-request-mcp_gateway_older"></a>

## `Request.mcp_gateway_older`

Whether turning the MCP gateway on needs the person's word that every device and the proxy are updated (ADR 0049, amendment of 2026-11-27): `true` when the account has another device that is not revoked, or a proxy of the person's own, or when that can't be read. A `klavd` older than this answers that the request is malformed, which the apps read as `true`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:588](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L588)
- Handlers: 3 · Callers: 3
- Method: `mcp_gateway_older` · transport unix-socket
- Used at: [crates/klav-daemon/src/presence.rs:202](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L202), [crates/klav-daemon/src/server.rs:4422](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4422), [crates/klav-daemon/src/server.rs:4457](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4457), [crates/klav-daemon/src/server.rs:4556](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4556), [crates/klav-daemon/src/server.rs:5420](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5420), … +1

<a id="rpc-request-mcp_gateway_on"></a>

## `Request.mcp_gateway_on`

Turns the account's MCP gateway switch on (ADR 0049 §9). Refused unless `every_device_updated` acknowledges what devices and proxies older than the gateway lose, when the account may hold one (`mcp_gateway_older`); asks for presence unless it is already on. Nothing turns it off. Answer: `true`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:594](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L594)
- Handlers: 3 · Callers: 2
- Method: `mcp_gateway_on` · transport unix-socket
- Input: `{ every_device_updated?: boolean; password?: SecretText }`
- Used at: [crates/klav-daemon/src/presence.rs:117](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L117), [crates/klav-daemon/src/server.rs:2440](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2440), [crates/klav-daemon/src/server.rs:3832](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3832), [crates/klav-daemon/src/server.rs:5421](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5421), [crates/klav-ffi/src/daemon.rs:1916](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1916)

<a id="rpc-request-offer_task"></a>

## `Request.offer_task`

The person offers an agent a task with `rotate` on these logins (ADR 0022 §6), signed without a request from the agent. Asks for presence like `decide_task`. Answer: the task's `TaskCard`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1069](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1069)
- Handlers: 3 · Callers: 3
- Method: `offer_task` · transport unix-socket
- Input: `{ offer: OfferRequest; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/health.rs:362](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/health.rs#L362), [crates/klav-daemon/src/presence.rs:101](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L101), [crates/klav-daemon/src/server.rs:2449](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2449), [crates/klav-daemon/src/server.rs:3824](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3824), [crates/klav-daemon/src/server.rs:5690](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5690), … +1

<a id="rpc-request-passkey_candidates"></a>

## `Request.passkey_candidates`

The logins with a passkey for the page (ADR 0020): metadata only. Without an `rp_id` in the answer, the call goes to the browser.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:285](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L285)
- Handlers: 3 · Callers: 2
- Method: `passkey_candidates` · transport unix-socket
- Input: `{ origin: string; rp_id?: string; allow_credentials?: string[] }`
- Used at: [crates/klav-daemon/src/presence.rs:167](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L167), [crates/klav-daemon/src/server.rs:2384](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2384), [crates/klav-daemon/src/server.rs:4439](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4439), [crates/klav-daemon/src/server.rs:4510](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4510), [crates/klav-daemon/src/server.rs:4748](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4748)

<a id="rpc-request-passkey_create"></a>

## `Request.passkey_create`

Create a passkey (ADR 0020): asks for Touch ID (or `password`) first, then stores it and returns the registration for the page, or says why not (`browser`, `excluded`, `exists`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:314](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L314)
- Handlers: 3 · Callers: 1
- Method: `passkey_create` · transport unix-socket
- Input: `{ request: PasskeyCreateRequest; password?: SecretText }`
- Used at: [crates/klav-daemon/src/presence.rs:96](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L96), [crates/klav-daemon/src/server.rs:2418](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2418), [crates/klav-daemon/src/server.rs:3844](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3844), [crates/klav-daemon/src/server.rs:4796](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4796)

<a id="rpc-request-passkey_get"></a>

## `Request.passkey_get`

Sign in with the passkey of `item` (ADR 0020): asks for Touch ID (or `password`) first, then returns the assertion for the page.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:297](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L297)
- Handlers: 3 · Callers: 1
- Method: `passkey_get` · transport unix-socket
- Input: `{ origin: string; rp_id?: string; challenge: string; item: string; password?: SecretText }`
- Used at: [crates/klav-daemon/src/presence.rs:96](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L96), [crates/klav-daemon/src/server.rs:2385](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2385), [crates/klav-daemon/src/server.rs:3844](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3844), [crates/klav-daemon/src/server.rs:4757](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4757)

<a id="rpc-request-passkey_uv"></a>

## `Request.passkey_uv`

The passkey user-verification window of this `klavd` (ADR 0020 §8): with `window`, sets it first. Loosening it asks for Touch ID (or `password`); tightening does not. Answer: `{window}`. Works locked while the presence gate is off; with it on, the setting is sealed in `klavd`'s local data and this answers `locked` while locked, and loosening opens no passkey window (ADR 0041 §2.4).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1088](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1088)
- Handlers: 4 · Callers: 0
- Method: `passkey_uv` · transport unix-socket
- Input: `{ window?: Window; password?: SecretText }`
- Used at: [crates/klav-daemon/src/presence.rs:127](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L127), [crates/klav-daemon/src/presence.rs:194](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L194), [crates/klav-daemon/src/server.rs:2517](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2517), [crates/klav-daemon/src/server.rs:3644](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3644)

<a id="rpc-request-password_history"></a>

## `Request.password_history`

The previous passwords of an item, without values.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:835](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L835)
- Handlers: 3 · Callers: 4
- Method: `password_history` · transport unix-socket
- Input: `{ query: string }`
- Used at: [crates/klav-cli/src/backend.rs:735](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L735), [crates/klav-daemon/src/presence.rs:224](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L224), [crates/klav-daemon/src/server.rs:2388](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2388), [crates/klav-daemon/src/server.rs:4448](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4448), [crates/klav-daemon/src/server.rs:4544](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4544), … +2

<a id="rpc-request-pause_agents"></a>

## `Request.pause_agents`

Pauses every agent (no `agent`) or one (ADR 0033 §7), now and without asking for presence: a scare costs one click (P2). Unlocked, `klavd` signs it with the account and sends it at once; offline, it applies it here and keeps trying. Locked, pausing every agent works too: `klavd` applies it here at once and signs and sends it after the next unlock; pausing one agent needs `klavd` unlocked. Works locked. Answer: [`PauseInEffect`] list, as in `status`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:708](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L708)
- Handlers: 2 · Callers: 3
- Method: `pause_agents` · transport unix-socket
- Input: `{ agent?: AgentId; until?: number }`
- Used at: [crates/klav-cli/src/commands/agent.rs:600](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L600), [crates/klav-cli/src/commands/agent.rs:615](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L615), [crates/klav-daemon/src/presence.rs:209](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L209), [crates/klav-daemon/src/server.rs:3656](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3656), [crates/klav-ffi/src/daemon.rs:2115](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2115)

<a id="rpc-request-pg_guard"></a>

## `Request.pg_guard`

The account's `pg_guard` switch (ADR 0052 §10): `true` or `false`, or `null` from a server older than the Postgres proxy.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:622](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L622)
- Handlers: 3 · Callers: 2
- Method: `pg_guard` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy.rs:184](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L184), [crates/klav-daemon/src/presence.rs:205](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L205), [crates/klav-daemon/src/server.rs:4460](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4460), [crates/klav-daemon/src/server.rs:4565](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4565), [crates/klav-daemon/src/server.rs:5476](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5476)

<a id="rpc-request-pg_guard_older"></a>

## `Request.pg_guard_older`

Whether turning the Postgres guard on needs the person's word that every device and the proxy are updated: as `proxy_tunnels_older`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:625](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L625)
- Handlers: 3 · Callers: 3
- Method: `pg_guard_older` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy.rs:228](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L228), [crates/klav-daemon/src/presence.rs:206](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L206), [crates/klav-daemon/src/server.rs:4424](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4424), [crates/klav-daemon/src/server.rs:4461](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4461), [crates/klav-daemon/src/server.rs:4566](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4566), … +1

<a id="rpc-request-pg_guard_on"></a>

## `Request.pg_guard_on`

Turns the account's `pg_guard` switch on (ADR 0052 §10), as `proxy_tunnels_on`. Nothing turns it off. Answer: `true`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:628](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L628)
- Handlers: 3 · Callers: 2
- Method: `pg_guard_on` · transport unix-socket
- Input: `{ every_device_updated?: boolean; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:240](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L240), [crates/klav-daemon/src/presence.rs:119](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L119), [crates/klav-daemon/src/server.rs:2442](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2442), [crates/klav-daemon/src/server.rs:3834](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3834), [crates/klav-daemon/src/server.rs:5478](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5478)

<a id="rpc-request-presence_window"></a>

## `Request.presence_window`

The presence window of this `klavd` (ADR 0041 §2.4): with `window`, sets it first. Loosening asks for Touch ID (or `password`) and opens no window; tightening asks for nothing and applies at once. Answer: `{window}`. `locked` while locked; `not_supported` while the presence gate is off.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1112](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1112)
- Handlers: 4 · Callers: 5
- Method: `presence_window` · transport unix-socket
- Input: `{ window?: Window; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/presence.rs:58](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/presence.rs#L58), [crates/klav-cli/src/commands/presence.rs:73](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/presence.rs#L73), [crates/klav-cli/src/presence.rs:754](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/presence.rs#L754), [crates/klav-daemon/src/presence.rs:130](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L130), [crates/klav-daemon/src/presence.rs:195](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L195), … +4

<a id="rpc-request-previous_password"></a>

## `Request.previous_password`

One previous password of an item.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:840](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L840)
- Handlers: 8 · Callers: 5
- Method: `previous_password` · transport unix-socket
- Input: `{ query: string; index: number; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:756](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L756), [crates/klav-daemon/src/presence.rs:89](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L89), [crates/klav-daemon/src/presence.rs:243](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L243), [crates/klav-daemon/src/server.rs:2389](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2389), [crates/klav-daemon/src/server.rs:3550](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3550), … +8

<a id="rpc-request-projects"></a>

## `Request.projects`

List projects.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:93](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L93)
- Handlers: 3 · Callers: 4
- Method: `projects` · transport unix-socket
- Input: `{ vault?: string }`
- Used at: [crates/klav-cli/src/backend.rs:343](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L343), [crates/klav-daemon/src/presence.rs:153](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L153), [crates/klav-daemon/src/server.rs:2378](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2378), [crates/klav-daemon/src/server.rs:4433](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4433), [crates/klav-daemon/src/server.rs:4478](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4478), … +2

<a id="rpc-request-proxy_cloud"></a>

## `Request.proxy_cloud`

Klav Cloud's proxy (ADR 0051 §6.1, §6.3, §4.4): `use` enrolls the account, verifies the enclave's attestation and names it the account's proxy; `stop` revokes its agent (changing the keys of what it held) and uses none; `reset` enrolls the next generation, moves the credentials to it and revokes the old agent. Each asks for presence first. Answers a `CloudOutcome`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:522](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L522)
- Handlers: 3 · Callers: 3
- Method: `proxy_cloud` · transport unix-socket
- Input: `{ action: CloudAction; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:348](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L348), [crates/klav-daemon/src/presence.rs:111](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L111), [crates/klav-daemon/src/server.rs:2434](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2434), [crates/klav-daemon/src/server.rs:3826](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3826), [crates/klav-daemon/src/server.rs:5240](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5240), … +1

<a id="rpc-request-proxy_cloud_entitled"></a>

## `Request.proxy_cloud_entitled`

Whether the account is entitled to Klav Cloud's proxy (ADR 0051 §15, `GET /v1/account/hosted-proxy`): `null` from a server older than it. What the apps read to offer «Use Klav Cloud Proxy».

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:515](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L515)
- Handlers: 3 · Callers: 3
- Method: `proxy_cloud_entitled` · transport unix-socket
- Used at: [crates/klav-daemon/src/presence.rs:197](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L197), [crates/klav-daemon/src/server.rs:4455](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4455), [crates/klav-daemon/src/server.rs:4554](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4554), [crates/klav-daemon/src/server.rs:5239](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5239), [crates/klav-ffi/src/daemon.rs:1878](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1878), … +1

<a id="rpc-request-proxy_grant"></a>

## `Request.proxy_grant`

Grants `item` to the account's proxy with `credential`'s profile and rules. `base_version` is the grant version the preview showed: nothing is signed if it changed. The presence prompt shows what is signed, and, while the proxy is pending, the 6 words of the key klavd fetched. `every_device_updated` acknowledges what older devices lose, needed for the account's first per-item grant.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:540](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L540)
- Handlers: 3 · Callers: 3
- Method: `proxy_grant` · transport unix-socket
- Input: `{ item: string; credential: ProxyCredentialSpec; base_version: number; every_device_updated?: boolean; shown_words?: string; shown_item?: ItemId; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:605](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L605), [crates/klav-daemon/src/presence.rs:112](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L112), [crates/klav-daemon/src/server.rs:2435](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2435), [crates/klav-daemon/src/server.rs:3827](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3827), [crates/klav-daemon/src/server.rs:5262](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5262), … +1

<a id="rpc-request-proxy_grant_preview"></a>

## `Request.proxy_grant_preview`

What `proxy_grant` would sign for `item` (the profile, its rules, the proxy's words and warnings), without signing or asking for presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:530](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L530)
- Handlers: 2 · Callers: 2
- Method: `proxy_grant_preview` · transport unix-socket
- Input: `{ item: string; credential: ProxyCredentialSpec }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:538](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L538), [crates/klav-daemon/src/presence.rs:198](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L198), [crates/klav-daemon/src/server.rs:5258](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5258), [crates/klav-ffi/src/proxy_grant.rs:597](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/proxy_grant.rs#L597)

<a id="rpc-request-proxy_issuer_add"></a>

## `Request.proxy_issuer_add`

Lets `agent` start sandboxes through the account's proxy: signs the issuer's grant and the proxy's. The base versions and the words are what the preview showed: nothing is signed if they changed. Asks for presence, with what it signs.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:678](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L678)
- Handlers: 3 · Callers: 3
- Method: `proxy_issuer_add` · transport unix-socket
- Input: `{ agent: string; issuer: IssuerSpec; proxy_base_version: number; issuer_base_version: number; shown_issuer: AgentId; shown_proxy: AgentId; every_device_updated?: boolean; shown_words?: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:731](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L731), [crates/klav-daemon/src/presence.rs:114](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L114), [crates/klav-daemon/src/server.rs:2437](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2437), [crates/klav-daemon/src/server.rs:3829](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3829), [crates/klav-daemon/src/server.rs:5316](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5316), … +1

<a id="rpc-request-proxy_issuer_preview"></a>

## `Request.proxy_issuer_preview`

What `proxy_issuer_add` would sign for `agent` (ADR 0036 E6.2): profiles, limits, the proxy's address, the agent's words and the warnings, without signing or asking for presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:670](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L670)
- Handlers: 2 · Callers: 2
- Method: `proxy_issuer_preview` · transport unix-socket
- Input: `{ agent: string; issuer: IssuerSpec }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:674](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L674), [crates/klav-daemon/src/presence.rs:199](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L199), [crates/klav-daemon/src/server.rs:5312](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5312), [crates/klav-ffi/src/proxy_issuer.rs:218](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/proxy_issuer.rs#L218)

<a id="rpc-request-proxy_issuer_remove"></a>

## `Request.proxy_issuer_remove`

Stops `agent` from starting sandboxes. Asks for presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:696](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L696)
- Handlers: 3 · Callers: 3
- Method: `proxy_issuer_remove` · transport unix-socket
- Input: `{ agent: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:767](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L767), [crates/klav-daemon/src/presence.rs:115](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L115), [crates/klav-daemon/src/server.rs:2438](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2438), [crates/klav-daemon/src/server.rs:3830](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3830), [crates/klav-daemon/src/server.rs:5376](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5376), … +1

<a id="rpc-request-proxy_revoke"></a>

## `Request.proxy_revoke`

Takes `item` away from the account's proxy and changes its key (ADR 0036 §18). Asks for presence.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:662](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L662)
- Handlers: 3 · Callers: 2
- Method: `proxy_revoke` · transport unix-socket
- Input: `{ item: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:638](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L638), [crates/klav-daemon/src/presence.rs:113](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L113), [crates/klav-daemon/src/server.rs:2436](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2436), [crates/klav-daemon/src/server.rs:3828](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3828), [crates/klav-daemon/src/server.rs:5556](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5556)

<a id="rpc-request-proxy_status"></a>

## `Request.proxy_status`

The account's credential proxy, what it holds and what is lost without one (ADR 0036 §13). Names, hosts and the proxy's words: never a value.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:503](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L503)
- Handlers: 3 · Callers: 7
- Method: `proxy_status` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy.rs:415](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L415), [crates/klav-daemon/src/presence.rs:196](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L196), [crates/klav-daemon/src/server.rs:4418](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4418), [crates/klav-daemon/src/server.rs:4454](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4454), [crates/klav-daemon/src/server.rs:4553](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4553), … +5

<a id="rpc-request-proxy_tunnels"></a>

## `Request.proxy_tunnels`

The account's `proxy_tunnels` switch (ADR 0052 §10): `true` or `false`, or `null` from a server older than tunnels.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:602](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L602)
- Handlers: 3 · Callers: 3
- Method: `proxy_tunnels` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy.rs:259](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L259), [crates/klav-daemon/src/presence.rs:203](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L203), [crates/klav-daemon/src/server.rs:4458](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4458), [crates/klav-daemon/src/server.rs:4560](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4560), [crates/klav-daemon/src/server.rs:5449](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5449), … +1

<a id="rpc-request-proxy_tunnels_older"></a>

## `Request.proxy_tunnels_older`

Whether turning WebSocket tunnels on needs the person's word that every device and the proxy are updated (ADR 0052 §10): as `mcp_gateway_older`, and also with Klav Cloud's proxy. A `klavd` older than this answers that the request is malformed, which the apps read as `true`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:608](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L608)
- Handlers: 3 · Callers: 4
- Method: `proxy_tunnels_older` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy.rs:305](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L305), [crates/klav-daemon/src/presence.rs:204](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L204), [crates/klav-daemon/src/server.rs:4423](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4423), [crates/klav-daemon/src/server.rs:4459](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4459), [crates/klav-daemon/src/server.rs:4561](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4561), … +2

<a id="rpc-request-proxy_tunnels_on"></a>

## `Request.proxy_tunnels_on`

Turns the account's `proxy_tunnels` switch on (ADR 0052 §10). Refused unless `every_device_updated` acknowledges what older devices and proxies lose, when the account may hold one; asks for presence unless it is already on. Nothing turns it off. Answer: `true`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:614](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L614)
- Handlers: 3 · Callers: 3
- Method: `proxy_tunnels_on` · transport unix-socket
- Input: `{ every_device_updated?: boolean; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:319](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L319), [crates/klav-daemon/src/presence.rs:118](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L118), [crates/klav-daemon/src/server.rs:2441](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2441), [crates/klav-daemon/src/server.rs:3833](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3833), [crates/klav-daemon/src/server.rs:5451](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5451), … +1

<a id="rpc-request-proxy_use"></a>

## `Request.proxy_use`

Sets which agent is the account's credential proxy (`agent`, a name or ID), or none. Asks for presence first (ADR 0036 §14).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:506](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L506)
- Handlers: 3 · Callers: 2
- Method: `proxy_use` · transport unix-socket
- Input: `{ agent?: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:506](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L506), [crates/klav-daemon/src/presence.rs:110](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L110), [crates/klav-daemon/src/server.rs:2433](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2433), [crates/klav-daemon/src/server.rs:3825](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3825), [crates/klav-daemon/src/server.rs:5202](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5202)

<a id="rpc-request-purge"></a>

## `Request.purge`

Permanently delete an item that is in the trash. `id` is the item ID; a reference or unique title also works, for the CLI.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L222)
- Handlers: 2 · Callers: 3
- Method: `purge` · transport unix-socket
- Input: `{ id: string }`
- Used at: [crates/klav-cli/src/backend.rs:628](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L628), [crates/klav-daemon/src/presence.rs:165](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L165), [crates/klav-daemon/src/server.rs:2416](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2416), [crates/klav-daemon/src/server.rs:4736](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4736), [crates/klav-ffi/src/daemon.rs:1122](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1122)

<a id="rpc-request-reset_cache"></a>

## `Request.reset_cache`

Forget the cached vaults and the rollback marks (keeping revoked agents and signed vault keys) and sync from scratch.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:89](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L89)
- Handlers: 2 · Callers: 2
- Method: `reset_cache` · transport unix-socket
- Used at: [crates/klav-cli/src/backend.rs:316](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L316), [crates/klav-daemon/src/presence.rs:151](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L151), [crates/klav-daemon/src/server.rs:2423](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2423), [crates/klav-daemon/src/server.rs:4624](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4624)

<a id="rpc-request-resolve"></a>

## `Request.resolve`

Resolve `klav://` references to values (`run`, `inject`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:240](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L240)
- Handlers: 10 · Callers: 6
- Method: `resolve` · transport unix-socket
- Input: `{ references: string[]; variables_only?: boolean; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:662](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L662), [crates/klav-daemon/src/presence.rs:92](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L92), [crates/klav-daemon/src/presence.rs:246](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L246), [crates/klav-daemon/src/server.rs:3552](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3552), [crates/klav-daemon/src/server.rs:3565](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3565), … +11

<a id="rpc-request-resolve_pending"></a>

## `Request.resolve_pending`

The person decides on a pending password from the item's card: `accept` makes it current («Use the new one»), else it goes to the history («Keep the current one»).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1050](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1050)
- Handlers: 2 · Callers: 2
- Method: `resolve_pending` · transport unix-socket
- Input: `{ query: string; accept: boolean }`
- Used at: [crates/klav-daemon/src/presence.rs:230](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L230), [crates/klav-daemon/src/server.rs:2419](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2419), [crates/klav-daemon/src/server.rs:5669](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5669), [crates/klav-ffi/src/daemon.rs:1394](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1394)

<a id="rpc-request-restore"></a>

## `Request.restore`

Restore an item from the trash. `id` is the item ID; a reference or unique title also works, for the CLI.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:216](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L216)
- Handlers: 2 · Callers: 3
- Method: `restore` · transport unix-socket
- Input: `{ id: string }`
- Used at: [crates/klav-cli/src/backend.rs:613](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L613), [crates/klav-daemon/src/presence.rs:164](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L164), [crates/klav-daemon/src/server.rs:2415](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2415), [crates/klav-daemon/src/server.rs:4735](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4735), [crates/klav-ffi/src/daemon.rs:1115](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1115)

<a id="rpc-request-resume_agents"></a>

## `Request.resume_agents`

Resumes every agent (no `agent`) or one, after Touch ID or the master password (ADR 0033 P2). Resuming every agent does not lift the pauses of single agents. Answer: [`PauseInEffect`] list.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:720](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L720)
- Handlers: 3 · Callers: 3
- Method: `resume_agents` · transport unix-socket
- Input: `{ agent?: AgentId; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/agent.rs:675](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L675), [crates/klav-daemon/src/presence.rs:122](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L122), [crates/klav-daemon/src/server.rs:2445](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2445), [crates/klav-daemon/src/server.rs:3837](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3837), [crates/klav-daemon/src/server.rs:5588](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5588), … +1

<a id="rpc-request-reused_offer"></a>

## `Request.reused_offer`

«Fix my reused passwords» (ADR 0022 §6), for the person: the logins that share a password, sorted by host, with their change pages, checked against `agent`'s grant, and the agents that can take the task (`klav_client::offer::ReusedOffer`). Never for an agent: no MCP tool or agent command asks for it.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1061](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1061)
- Handlers: 2 · Callers: 2
- Method: `reused_offer` · transport unix-socket
- Input: `{ agent?: string }`
- Used at: [crates/klav-cli/src/backend.rs:702](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L702), [crates/klav-daemon/src/presence.rs:231](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L231), [crates/klav-daemon/src/server.rs:5675](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5675), [crates/klav-ffi/src/daemon.rs:1787](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1787)

<a id="rpc-request-revoke_agent"></a>

## `Request.revoke_agent`

Revokes an agent; with `rotate`, also rotates its projects' keys, one project at a time, releasing the session between projects (ADR 0033, amendment of 2026-11-10, F2). The progress goes in `status` (`revocations`) while it runs. Called again with `rotate` on a revoked agent, it finishes what is left.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:455](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L455)
- Handlers: 2 · Callers: 4
- Method: `revoke_agent` · transport unix-socket
- Input: `{ agent: AgentId; rotate?: boolean; background?: boolean }`
- Used at: [crates/klav-cli/src/commands/agent.rs:514](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L514), [crates/klav-daemon/src/presence.rs:190](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L190), [crates/klav-daemon/src/server.rs:2432](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2432), [crates/klav-daemon/src/server.rs:3665](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3665), [crates/klav-ffi/src/daemon.rs:1664](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1664), … +1

<a id="rpc-request-sandbox_list"></a>

## `Request.sandbox_list`

The person's list of sandboxes (ADR 0036 E2.1): every sandbox in the verified chain, with the last heartbeat of the account's proxy, checked against this device's watermark. Verifies the log as `verify_audit` does. Answer: [`klav_client::sandboxes::SandboxList`]. Preferences an agent wrote are a `security` error here, as in every `klavd` before `sandbox_list_flagged`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:763](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L763)
- Handlers: 3 · Callers: 6
- Method: `sandbox_list` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy_sandboxes.rs:59](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_sandboxes.rs#L59), [crates/klav-cli/src/commands/proxy_sandboxes.rs:81](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_sandboxes.rs#L81), [crates/klav-daemon/src/presence.rs:212](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L212), [crates/klav-daemon/src/server.rs:4419](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4419), [crates/klav-daemon/src/server.rs:4464](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4464), … +4

<a id="rpc-request-sandbox_list_checked"></a>

## `Request.sandbox_list_checked`

[`Request::SandboxListFlagged`] for a caller that says in its own words which check refused the list. Answer: [`klav_client::sandboxes::CheckedList`], with the list, or `refused` with the check ([`klav_client::sandboxes::ListCheck`]) and the `security` error's words, instead of that error. Every other failure, a `security` one of no known check included, is the same error as `sandbox_list_flagged`'s. An older `klavd` answers `bad_request`: ask `sandbox_list_flagged` then, which fails with `security`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:778](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L778)
- Handlers: 3 · Callers: 3
- Method: `sandbox_list_checked` · transport unix-socket
- Used at: [crates/klav-daemon/src/presence.rs:216](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L216), [crates/klav-daemon/src/server.rs:4421](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4421), [crates/klav-daemon/src/server.rs:4466](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4466), [crates/klav-daemon/src/server.rs:4578](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4578), [crates/klav-daemon/src/server.rs:5633](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5633), … +1

<a id="rpc-request-sandbox_list_flagged"></a>

## `Request.sandbox_list_flagged`

[`Request::SandboxList`] for a caller that shows a security flag: preferences an agent wrote give the chain's rows of every proxy, no proxy and `security` ([`klav_client::sandboxes::SecurityFlag`]) instead of an error. An older `klavd` answers `bad_request`: ask `sandbox_list` then, which fails closed.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:769](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L769)
- Handlers: 3 · Callers: 4
- Method: `sandbox_list_flagged` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy_sandboxes.rs:79](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_sandboxes.rs#L79), [crates/klav-daemon/src/presence.rs:213](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L213), [crates/klav-daemon/src/server.rs:4420](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4420), [crates/klav-daemon/src/server.rs:4465](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4465), [crates/klav-daemon/src/server.rs:4577](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4577), … +2

<a id="rpc-request-sandbox_revoke"></a>

## `Request.sandbox_revoke`

The person's revocation of sandboxes of `proxy`, signed with the account's identity without presence (ADR 0036 E2.3). `scope` is `"all"` (every sandbox of `proxy` issued so far) or one sandbox ID, always given: a request without it, or with anything else, is a `bad_request` and revokes nothing. Answer: [`klav_client::sandbox_revoke::RevokeOutcome`]; a later revocation of the same scope is its `not_applied`, not an error.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:786](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L786)
- Handlers: 2 · Callers: 3
- Method: `sandbox_revoke` · transport unix-socket
- Input: `{ proxy: AgentId; scope: string }`
- Used at: [crates/klav-cli/src/commands/proxy_sandboxes.rs:538](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy_sandboxes.rs#L538), [crates/klav-cli/src/commands/secret_request.rs:137](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L137), [crates/klav-daemon/src/presence.rs:217](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L217), [crates/klav-daemon/src/server.rs:5637](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5637), [crates/klav-ffi/src/daemon.rs:388](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L388)

<a id="rpc-request-sandbox_secret_requests"></a>

## `Request.sandbox_secret_requests`

The account's `sandbox_secret_requests` switch (ADR 0053 §9): `true` or `false`, or `null` from a server older than it.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:636](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L636)
- Handlers: 3 · Callers: 3
- Method: `sandbox_secret_requests` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy.rs:95](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L95), [crates/klav-daemon/src/presence.rs:207](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L207), [crates/klav-daemon/src/server.rs:4462](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4462), [crates/klav-daemon/src/server.rs:4567](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4567), [crates/klav-daemon/src/server.rs:5502](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5502), … +1

<a id="rpc-request-sandbox_secret_requests_older"></a>

## `Request.sandbox_secret_requests_older`

Whether turning sandbox secret requests on needs the person's word that every device and the proxy are updated: as `pg_guard_older`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:639](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L639)
- Handlers: 3 · Callers: 4
- Method: `sandbox_secret_requests_older` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/proxy.rs:147](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L147), [crates/klav-daemon/src/presence.rs:208](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L208), [crates/klav-daemon/src/server.rs:4425](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4425), [crates/klav-daemon/src/server.rs:4463](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4463), [crates/klav-daemon/src/server.rs:4571](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4571), … +2

<a id="rpc-request-sandbox_secret_requests_on"></a>

## `Request.sandbox_secret_requests_on`

Turns the account's `sandbox_secret_requests` switch on (ADR 0053 §9), as `pg_guard_on`. Nothing turns it off. Answer: `true`.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:642](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L642)
- Handlers: 3 · Callers: 3
- Method: `sandbox_secret_requests_on` · transport unix-socket
- Input: `{ every_device_updated?: boolean; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/proxy.rs:165](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/proxy.rs#L165), [crates/klav-daemon/src/presence.rs:120](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L120), [crates/klav-daemon/src/server.rs:2443](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2443), [crates/klav-daemon/src/server.rs:3835](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3835), [crates/klav-daemon/src/server.rs:5510](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5510), … +1

<a id="rpc-request-secret_request_issuer_off"></a>

## `Request.secret_request_issuer_off`

The card's "Don't let `<issuer>`'s sandboxes ask again" (ADR 0053 §3.3, T297): re-signs the proxy's grant with the opt-in of the issuer whose sandbox raised `request` turned off. The issuer comes from the verified audit log. Asks for presence, with the issuer's name. Answer: [`klav_client::issuers::IssuerReport`]. ("Stop this sandbox" is `sandbox_revoke` with the card's proxy and sandbox.)

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:654](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L654)
- Handlers: 3 · Callers: 3
- Method: `secret_request_issuer_off` · transport unix-socket
- Input: `{ request: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/commands/secret_request.rs:172](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L172), [crates/klav-daemon/src/presence.rs:121](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L121), [crates/klav-daemon/src/server.rs:2444](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2444), [crates/klav-daemon/src/server.rs:3836](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3836), [crates/klav-daemon/src/server.rs:5534](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5534), … +1

<a id="rpc-request-secret_requests"></a>

## `Request.secret_requests`

Pending (or all recent) agent secret requests (ADR 0046).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:420](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L420)
- Handlers: 3 · Callers: 4
- Method: `secret_requests` · transport unix-socket
- Input: `{ all?: boolean }`
- Used at: [crates/klav-cli/src/commands/secret_request.rs:200](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/secret_request.rs#L200), [crates/klav-daemon/src/presence.rs:180](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L180), [crates/klav-daemon/src/server.rs:2376](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2376), [crates/klav-daemon/src/server.rs:4453](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4453), [crates/klav-daemon/src/server.rs:4552](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4552), … +2

<a id="rpc-request-set_agent_label"></a>

## `Request.set_agent_label`

Sets or clears a person-owned label and/or host for an agent (ADR 0047).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:338](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L338)
- Handlers: 2 · Callers: 3
- Method: `set_agent_label` · transport unix-socket
- Input: `{ agent: AgentId; label?: string; host?: string }`
- Used at: [crates/klav-cli/src/commands/agent.rs:742](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/agent.rs#L742), [crates/klav-daemon/src/presence.rs:171](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L171), [crates/klav-daemon/src/server.rs:2411](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2411), [crates/klav-daemon/src/server.rs:4894](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4894), [crates/klav-ffi/src/daemon.rs:2103](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2103)

<a id="rpc-request-set_project_repos"></a>

## `Request.set_project_repos`

Replace the linked Git repositories of a project (ADR 0032 §2).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:112](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L112)
- Handlers: 2 · Callers: 3
- Method: `set_project_repos` · transport unix-socket
- Input: `{ vault?: string; project: string; repos: string[] }`
- Used at: [crates/klav-cli/src/backend.rs:410](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L410), [crates/klav-daemon/src/presence.rs:156](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L156), [crates/klav-daemon/src/server.rs:2410](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2410), [crates/klav-daemon/src/server.rs:4658](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4658), [crates/klav-ffi/src/daemon.rs:1269](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1269)

<a id="rpc-request-shutdown"></a>

## `Request.shutdown`

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1101](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1101)
- Handlers: 2 · Callers: 5
- Method: `shutdown` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/account.rs:317](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/account.rs#L317), [crates/klav-cli/src/commands/deletion.rs:223](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/deletion.rs#L223), [crates/klav-daemon/src/presence.rs:234](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L234), [crates/klav-daemon/src/server.rs:1933](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L1933), [crates/klav-daemon/src/server.rs:3674](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3674), … +2

<a id="rpc-request-status"></a>

## `Request.status`

Daemon status; works locked.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:70](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L70)
- Handlers: 2 · Callers: 12
- Method: `status` · transport unix-socket
- Used at: [crates/klav-cli/src/backend.rs:79](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L79), [crates/klav-cli/src/commands/account.rs:263](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/account.rs#L263), [crates/klav-cli/src/commands/account.rs:383](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/account.rs#L383), [crates/klav-cli/src/commands/deletion.rs:172](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/deletion.rs#L172), [crates/klav-cli/src/commands/generate.rs:122](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/generate.rs#L122), … +9

<a id="rpc-request-suggest"></a>

## `Request.suggest`

Items to offer on a page (browser extension): matching logins, the one-time codes saved on their own that name the page (`codes`), cards and identities, metadata only.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:257](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L257)
- Handlers: 3 · Callers: 2
- Method: `suggest` · transport unix-socket
- Input: `{ url: string }`
- Used at: [crates/klav-daemon/src/presence.rs:166](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L166), [crates/klav-daemon/src/server.rs:2381](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2381), [crates/klav-daemon/src/server.rs:4436](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4436), [crates/klav-daemon/src/server.rs:4499](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4499), [crates/klav-daemon/src/server.rs:4737](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4737)

<a id="rpc-request-sync"></a>

## `Request.sync`

Pull changes from the server.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:86](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L86)
- Handlers: 2 · Callers: 4
- Method: `sync` · transport unix-socket
- Used at: [crates/klav-cli/src/backend.rs:323](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L323), [crates/klav-cli/src/commands/deletion.rs:127](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/deletion.rs#L127), [crates/klav-daemon/src/presence.rs:150](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L150), [crates/klav-daemon/src/server.rs:4614](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4614), [crates/klav-ffi/src/daemon.rs:957](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L957), … +1

<a id="rpc-request-task_log"></a>

## `Request.task_log`

The audit summary of a task (`klav log --task`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:416](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L416)
- Handlers: 2 · Callers: 1
- Method: `task_log` · transport unix-socket
- Input: `{ task: string }`
- Used at: [crates/klav-cli/src/commands/task.rs:374](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L374), [crates/klav-daemon/src/presence.rs:179](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L179), [crates/klav-daemon/src/server.rs:5072](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5072)

<a id="rpc-request-task_progress"></a>

## `Request.task_progress`

Each site of a task with `rotate`: changed, pending or failed (`klav_client::offer::TaskProgress`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:1078](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L1078)
- Handlers: 2 · Callers: 1
- Method: `task_progress` · transport unix-socket
- Input: `{ task: string }`
- Used at: [crates/klav-daemon/src/presence.rs:232](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L232), [crates/klav-daemon/src/server.rs:5703](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5703), [crates/klav-ffi/src/daemon.rs:1816](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1816)

<a id="rpc-request-tasks"></a>

## `Request.tasks`

Task requests and running tasks (or `all` recent ones), as cards completed by this client (ADR 0021 §3).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:386](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L386)
- Handlers: 3 · Callers: 4
- Method: `tasks` · transport unix-socket
- Input: `{ all?: boolean }`
- Used at: [crates/klav-cli/src/commands/task.rs:138](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/task.rs#L138), [crates/klav-daemon/src/presence.rs:177](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L177), [crates/klav-daemon/src/server.rs:2375](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2375), [crates/klav-daemon/src/server.rs:4452](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4452), [crates/klav-daemon/src/server.rs:4551](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4551), … +2

<a id="rpc-request-totp"></a>

## `Request.totp`

Current TOTP code.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:227](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L227)
- Handlers: 8 · Callers: 5
- Method: `totp` · transport unix-socket
- Input: `{ query: string; field?: string; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:644](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L644), [crates/klav-daemon/src/presence.rs:90](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L90), [crates/klav-daemon/src/presence.rs:244](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L244), [crates/klav-daemon/src/server.rs:2383](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2383), [crates/klav-daemon/src/server.rs:3551](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3551), … +8

<a id="rpc-request-trash"></a>

## `Request.trash`

Move an item to the trash.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:210](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L210)
- Handlers: 2 · Callers: 3
- Method: `trash` · transport unix-socket
- Input: `{ query: string }`
- Used at: [crates/klav-cli/src/backend.rs:598](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L598), [crates/klav-daemon/src/presence.rs:163](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L163), [crates/klav-daemon/src/server.rs:2414](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2414), [crates/klav-daemon/src/server.rs:4734](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4734), [crates/klav-ffi/src/daemon.rs:1362](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1362)

<a id="rpc-request-unlock"></a>

## `Request.unlock`

Unlock with the master password, or (without `password`) with the platform's biometric unlock when enrolled.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:73](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L73)
- Handlers: 2 · Callers: 3
- Method: `unlock` · transport unix-socket
- Input: `{ password?: SecretText; passkey_flow?: boolean }`
- Used at: [crates/klav-cli/src/backend.rs:116](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L116), [crates/klav-cli/src/backend.rs:169](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L169), [crates/klav-daemon/src/presence.rs:148](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L148), [crates/klav-daemon/src/server.rs:3679](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3679), [crates/klav-ffi/src/daemon.rs:815](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L815)

<a id="rpc-request-vault_health"></a>

## `Request.vault_health`

The vault health report (ADR 0022 §4): reused, weak and old passwords, and breached ones if the person turned the breach check on (`health.json`). Items, hosts and reasons; never values.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:854](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L854)
- Handlers: 2 · Callers: 2
- Method: `vault_health` · transport unix-socket
- Used at: [crates/klav-cli/src/backend.rs:722](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L722), [crates/klav-daemon/src/presence.rs:225](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L225), [crates/klav-daemon/src/server.rs:3640](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L3640), [crates/klav-ffi/src/daemon.rs:1761](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L1761)

<a id="rpc-request-vaults"></a>

## `Request.vaults`

List vaults.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:91](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L91)
- Handlers: 3 · Callers: 4
- Method: `vaults` · transport unix-socket
- Used at: [crates/klav-cli/src/backend.rs:330](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L330), [crates/klav-daemon/src/presence.rs:152](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L152), [crates/klav-daemon/src/server.rs:2377](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2377), [crates/klav-daemon/src/server.rs:4432](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4432), [crates/klav-daemon/src/server.rs:4477](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L4477), … +2

<a id="rpc-request-verify_audit"></a>

## `Request.verify_audit`

Verifies the audit log and signs its head (`klav log verify`).

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:756](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L756)
- Handlers: 2 · Callers: 2
- Method: `verify_audit` · transport unix-socket
- Used at: [crates/klav-cli/src/commands/log.rs:414](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/commands/log.rs#L414), [crates/klav-daemon/src/presence.rs:211](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L211), [crates/klav-daemon/src/server.rs:5630](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L5630), [crates/klav-ffi/src/daemon.rs:2023](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-ffi/src/daemon.rs#L2023)

<a id="rpc-request-view"></a>

## `Request.view`

Show an item.

- Kind: rpc
- Workspace: [klav-daemon](../../architecture/klav-daemon.md)
- Source: [crates/klav-daemon/src/protocol.rs:186](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/protocol.rs#L186)
- Handlers: 9 · Callers: 7
- Method: `view` · transport unix-socket
- Input: `{ query: string; reveal: boolean; password?: SecretText }`
- Used at: [crates/klav-cli/src/backend.rs:446](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/backend.rs#L446), [crates/klav-daemon/src/presence.rs:88](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L88), [crates/klav-daemon/src/presence.rs:160](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L160), [crates/klav-daemon/src/presence.rs:242](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/presence.rs#L242), [crates/klav-daemon/src/server.rs:2380](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-daemon/src/server.rs#L2380), … +11
