Panel: list or preview project files
view_filesApp-only adapter for the project-file list and image-preview area in the Blender Bridge panel. action=list returns existing workspace file metadata in view.files; it needs no path. action=preview requires a workspace-relative file path from that list and returns a bounded preview in view.preview. Absolute disk paths are omitted from the list payload. Does not save, render or prepare a download link. Missing paths or failed file reads return project_file_action_failed. Models should use list_project_files to discover results and get_project_file to retrieve a requested file.
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": {
"action": "<action>"
},
"name": "view_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Workspace-relative path from the file list; required for preview, unnecessary for list. | |
| action | Yes | list reads workspace file records; preview reads an image preview for the given path. |