blend_file
Manage the open .blend file: inspect paths and unsaved changes, save or save a copy, rename, open, create, revert, list recent files, and recover autosaves.
Instructions
Manage the open .blend file.
- ``info``: current path and whether there are unsaved changes
- ``save``: save in place (``path`` empty) or to ``path``
- ``save_as`` / ``save_copy``: save to ``path`` (copy keeps working on the current file)
- ``rename``: rename the file on disk; ``path`` is a new name or full path. The old
file goes to the system trash (``keep_old`` leaves it in place)
- ``open`` / ``new``: open ``path`` or start a new file; refuse on unsaved changes
unless ``discard_changes`` (ask the user first)
- ``revert``: reload the last saved version, dropping unsaved changes (ask first)
- ``list``: .blend files in ``path`` (default: the current file's folder)
- ``recent``: Blender's File > Open Recent list
- ``autosaves``: autosave files and the last session (``quit.blend``), newest first
- ``recover``: open the autosave at ``path``, or the last session when ``path`` is
empty. The last session keeps its original path (``save`` writes over it); an
autosave points at the temp folder, so keep it with ``save_as``. Refuses on
unsaved changes unless ``discard_changes``
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "blend_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| action | No | info | |
| keep_old | No | ||
| overwrite | No | ||
| recursive | No | ||
| discard_changes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||