Set a scratch disk location
set_scratch_disk_pathSets an active project's scratch disk location (preview, capture, auto-save, libraries, MOGRT media) to an existing folder or back to the project folder, returning the new and previous paths.
Instructions
Set one of the active project's scratch disk locations (Project Settings > Scratch Disks) to a folder, or back to the project's own folder. The folder must exist (FILE_NOT_FOUND otherwise). Existing preview or auto-save files are not moved. Returns the location read back and the previous one.
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": {
"type": "<type>"
},
"name": "set_scratch_disk_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path of an existing folder. Required unless same_as_project is true; ignored when it is. | |
| type | Yes | Which scratch disk: video_capture (captured video), video_preview / audio_preview (render previews), auto_save (project auto-saves), cc_libraries (CC Libraries downloads), motion_graphics_templates (Motion Graphics template media). The captured-audio location cannot be changed by script in Premiere Pro 26. | |
| same_as_project | No | true = use the folder of the project file (Premiere's default) instead of path. Default false. |