memory_observe_tool
Observe tool executions and store hashed, redacted metadata for memory and recall. Group events by session, track outcomes, and capture error summaries for audit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event": "<event>",
"tool": "<tool>"
},
"name": "memory_observe_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory at the time of the tool call | |
| tool | Yes | Tool name being observed (Bash, Edit, Write, etc.) | |
| event | Yes | Hook event name (PreToolUse, PostToolUse, PostToolUseFailure, PreCompact, PostCompact, etc.) | |
| files | No | File paths to fingerprint (size + mtime + content hash) | |
| input | No | Tool input. Hashed and never stored raw; redacted metadata is only stored when retain_details is true. | |
| output | No | Tool output. Same redaction and storage policy as input. | |
| outcome | No | Outcome classification | |
| metadata | No | Arbitrary structured metadata (redacted before storage) | |
| session_id | No | Session identifier for grouping related events | |
| error_summary | No | Short error description if the tool failed. Redacted and truncated to 2 KB. | |
| retain_details | No | If true, redacted input and output payloads are stored alongside hashes. Defaults to false. |