env_sync_write
Non-destructive env-sync writes. action: enroll | request_share | heartbeat. Secret push/rotate are separate tools. (consolidated surface — same handlers as the legacy tools) Required per action — enroll: alias, age_pubkey, enrollment_token | request_share: target_device_id, secret_shares, device_id | heartbeat: device_id, installed_skills_hash, installed_hooks_hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | [heartbeat] | |
| alias | No | [enroll] | |
| action | Yes | which operation to run | |
| device_id | No | [enroll] Optional calling device id for audit attribution. The X-Ainote-Device-Id header is the canonical source; this argument is the backwards-compatible fallback for clients that predate the header. If both are sent and disagree, the request is rejected (DEVICE_MISMATCH). [request_share] The existing device performing the re-encryption (must own access to all secret_node_ids). [heartbeat] | |
| age_pubkey | No | [enroll] | |
| client_hlc | No | [request_share] | |
| capabilities | No | [enroll] | |
| secret_shares | No | [request_share] | |
| installed_hooks | No | [heartbeat] | |
| enrollment_token | No | [enroll] | |
| installed_skills | No | [heartbeat] | |
| target_device_id | No | [request_share] | |
| claude_code_version | No | [heartbeat] | |
| installed_hooks_hash | No | [heartbeat] | |
| installed_skills_hash | No | [heartbeat] | |
| installed_mcp_servers_hash | No | [heartbeat] |