# Tools The model is given all of these on every request. There is one file per tool here, mirroring `agent/tools/` — adding a tool means a new file there plus one line in the registry in `agent/tools.gd`. ## Files | Tool | What it does | |---|---| | [`get_editor_setting`](get_editor_setting.md) | Read an editor setting | | [`get_project_setting`](get_project_setting.md) | Read a project setting | | [`list_addons`](list_addons.md) | List installed addons | | [`list_editor_settings`](list_editor_settings.md) | Find an editor setting | | [`list_files`](list_files.md) | List a directory | | [`list_project_settings`](list_project_settings.md) | Find a project setting | | [`list_sessions`](list_sessions.md) | List saved chats | | [`read_file`](read_file.md) | Read a file, including images | | [`remote`](remote.md) | Run a shell command | | [`web_fetch`](web_fetch.md) | Fetch a URL as text | | [`resume_session`](resume_session.md) | Switch to another chat | | [`screenshot`](screenshot.md) | Capture the editor window | | [`set_addon_enabled`](set_addon_enabled.md) | Enable or disable an addon | | [`set_editor_setting`](set_editor_setting.md) | Change an editor setting | | [`set_project_setting`](set_project_setting.md) | Change a project setting | | [`update_session_description`](update_session_description.md) | Name the current chat | | [`write_file`](write_file.md) | Create or fully overwrite a file | | [`delete_file`](delete_file.md) | Delete a file, sidecars included | | [`move_file`](move_file.md) | Move or rename a file | | [`copy_file`](copy_file.md) | Copy a file | | [`edit_file`](edit_file.md) | Replace an exact snippet; prefer over `write_file` | | [`read_log`](read_log.md) | Read Godot's editor or project log | | [`compact`](compact.md) | Summarize the chat to free context | | [`eval`](eval.md) | Run GDScript and return its value | | [`reload`](reload.md) | Rescan the filesystem or restart | | [`task`](task.md) | Start a background agent run | ## Paths Tool paths are project-relative: anything not starting with `res://` is treated as if it were, and `..` can't climb out. The single exception is `user://.claude-godot/`, which holds memory and sessions. Those are deliberately outside the project so they are not committed with the game, and the file tools reach them so the model can keep notes. No other part of `user://` is reachable. ## Result size Tool output is clipped at 60,000 characters before it reaches the conversation, with a note saying what the full length was. An oversized result is not a one-off failure — it stays in the history and is resent with every following request, so the conversation would be stuck until it was removed. If a request is rejected for exceeding the context anyway, the agent empties the most recent tool outputs, tells you how much it dropped, and retries once rather than leaving the chat unable to send anything. ## Results A tool returns text, plus optional extras the dock understands rather than the model: a diff for `write_file`, an image for `read_file`, a deferred session switch for `resume_session`. Errors come back as text with a flag, not as exceptions — a failed tool call is something the model should read and respond to, not something that stops the turn.