Project files
filesManage Godot project resources: read, write, search, edit scripts, scenes, and assets. Writes sync the editor, reload scripts, and return compile errors.
Instructions
Read, write, search and manage files inside the Godot project (res://). Writes keep the editor in sync: scripts are reloaded and their compile errors returned, scenes/resources are refreshed, assets reimported. Reading an image returns it as a picture.
Actions:
list: {path='res://', recursive=true, pattern?='*.gd', include_addons?, limit?} list files with their resource type.
search: {query, regex?, case_sensitive?, glob?, path?, limit?} grep text files (gd, tscn, tres, gdshader, cfg, json, md...).
read: {path, offset?, limit?} read a text file (line range optional) or view an image.
write: {path, content, overwrite?=true} create/replace a file. .gd files come back with 'diagnostics'.
edit: {path, edits: [{old, new, replace_all?}]} exact string replacements (old must match exactly once, tabs matter). Prefer this over rewriting whole files.
move: {from, to, update_references?=true} move/rename, updating res:// references in scenes/scripts.
copy: {from, to}
delete: {path} move a file/folder to the OS trash.
mkdir: {path} create a folder (and parents).
exists: {path} does a file/folder exist, and its resource type.
dependencies: {path} what a resource depends on and what uses it.
rescan: {reimport?: [paths]} rescan the filesystem / force reimport (after changing files outside the editor).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Destination path. | |
| from | No | Source path. | |
| path | No | res:// path (bare relative paths are treated as res://). | |
| edits | No | Exact replacements. | |
| query | No | Search text or regex. | |
| action | Yes | What to do. See the tool description for each action's parameters. | |
| content | No | Full file content. | |
| pattern | No | Filename glob. |