file_snapshot
Captures a file's current content as an explicit version before a risky change, so you can restore or compare it later. Expects an adapter://path.
Instructions
Keep a file's current content as a version now (edit rights). Writes normally keep one by themselves; this is the explicit one before a risky change.
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": "file_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | adapter://path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | the operation's JSON answer - the body its REST twin under /api/ai answers (an object) | |
| status | Yes |