agentsecure.read_message
Retrieve and acknowledge a local Mesh message after listing the inbox by message_id and matching agent_id; returns read status and read_at while the body remains redacted.
Instructions
Retrieve and acknowledge one local Mesh message after listing the inbox. Requires agent_id to match the record's recipient; an unknown ID or a different recipient causes an error. Returns the message record with status=read and read_at; the first read updates local state and audit. Re-reading returns the same acknowledged record. Body remains [redacted], with only body_summary/body_sha256 available; this does not recover original text. Use agentsecure.list_messages to inspect without marking read. The recipient check compares caller-supplied IDs, not authenticated identities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Non-empty Mesh agent ID, e.g. backend-agent. Pass this session's AGENTSECURE_AGENT_ID value when set; it is not read automatically. IDs are caller-supplied local labels, not authentication credentials. | |
| message_id | Yes | Exact message_id returned by list_messages or send_message. Unknown IDs cause an error. |