agentsecure.audit_context
Inspect recent local Mesh audit events to troubleshoot messages, registrations, approvals, or policy denials, with optional resource filtering and result limits.
Instructions
Inspect recent local Mesh history for troubleshooting messages, registrations, approvals, or policy denials. Returns an events array containing only mesh.* records from the configured audit log, optionally filtered by resource, with the last limit matches in log order (oldest first within that slice). A missing log returns an empty array and malformed JSON lines are skipped. Does not change state or include non-Mesh HTTP/secret audit events. Text fields may be redacted with summary/hash metadata; this is not an immutable audit service. Example: {"limit": 10}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of most recent matching events to return; defaults to 50. Use a positive integer (values are converted with int); 0 returns all matches, not zero events. | |
| resource | No | Optional filter, e.g. {"path": "src/app.py"}; defaults to {} (all Mesh events). Each key and stringified value must occur in serialized event details. This is substring matching, not exact structured matching. |