Index files with hashes
files_indexFlat index of every file under a path with size, mtime and an XXH64 content hash, in ONE call, for sync tools. Honours gitignore patterns. Send the digest of a listing you already hold: an unchanged tree answers unchanged: true with no entries.
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": {
"id": "<id>"
},
"name": "files_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| path | No | Directory to index. Defaults to the volume root. | |
| digest | No | Digest of a previous index of the same path. | |
| ignore | No | gitignore-style patterns. A matching directory is not entered. | |
| hashMaxBytes | No | Files above this size are listed without a hash. Default 4 MiB, 0 disables hashing. |