find_file
Search file names across all backups to list every version and everywhere it can be restored from, ordered by cheapest source: disk, tape library, or offline tape.
Instructions
Read-only. Searches file NAMES (substring, or glob with * ?; a pattern with / also matches the directory) across all backups: the P5 backup index copy (needs index_sync) and the tar catalogue. Returns every matching file (full path) with every version (distinct mtime+size, newest first); each version lists all places it can be fetched from, cheapest first: 1 disk-tar (inside a tar still on disk, no tape needed), 2 tape-library (P5 volume in the library) or tar-on-tape in library, 3 tape-offline (only on tapes outside the library: shows the barcode to insert). Same path+mtime+size from several sources is one version with several locations. Each version has a key and each location an id for restore_version.
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": {
"pattern": "<pattern>"
},
"name": "find_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | max files, default 20, max 200 | |
| since | No | only versions modified on/after YYYY-MM-DD | |
| under | No | only below this directory (path prefix) | |
| client | No | only this P5 client | |
| pattern | Yes |