Find documents that use a path
find-file-referencesIdentify every world document field pointing to a file or folder path, helping you assess impact before moving or replacing files. Excludes compendium content.
Instructions
Find every field of every world document that points to a file or folder path, with the same path rule world-rewrite-paths uses: a folder matches the files under it, never a longer name. Use it before moving or replacing files. Compendiums are not scanned.
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": "find-file-references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or folder path, such as "worlds/<world>/tokens" | |
| maxResults | No | At most this many references, 1 to 1000, default 200 | |
| collections | No | Collections to scan: scenes, actors, items, journal, playlists, tables, cards, macros, users. Default all. |