pin_snapshot
Hashes every file in a folder tree into a pin manifest with a table digest and optional HMAC signature, returning it or writing it to a protected file to detect changes.
Instructions
Hash every file in a folder tree into a pin manifest you keep: a file table with a digest over the table, and an HMAC signature over it when CITADEL_PIN_KEY is set in the environment. Returns the manifest; pass manifest_path to also write it to a file, somewhere the pinned tool cannot rewrite.
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": {
"path": "<path>"
},
"name": "pin_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the folder or file to check. | |
| manifest_path | No | Optional file to write the manifest to. |