Rename / move files
typst_rename_fileRename or move files within a Typst project by specifying project-relative paths, then update #include/#import references to keep documents compiling.
Instructions
Rename or move files inside a project. Moving to a new folder is just a new path. Remember to update #include/#import paths that point to them.
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": {
"project_id": "<project_id>",
"renames": "<renames>"
},
"name": "typst_rename_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| renames | Yes | ||
| project_id | Yes | Project ID from typst_list_projects, e.g. 'pAbC123dEf456gHi789jKl' |