relink-asset
Update all references from one asset path to another, preventing broken links after file moves or renames. Use dryRun mode to preview changes before committing.
Instructions
Reference integrity. Rewrite every reference from one asset path to another (e.g. after moving/renaming a file) so nothing breaks. Pass dryRun:true to preview the documents that would change without writing. GM-only.
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": {
"oldPath": "<oldPath>",
"newPath": "<newPath>"
},
"name": "relink-asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Report what would change without writing. | |
| newPath | Yes | New Data-relative path to point references at. | |
| oldPath | Yes | Current Data-relative path being referenced. |