Files
RoboMovel/simulacao/robo-movel-godot/addons/claude_godot/docs/tools/eval.md
T
mguinhosandClaude Opus 5.5 393019705c Projeto: app demo, servidor/firmware em software/, simulacao Godot, planta do bloco D, chapas MDF da base, renders e slides
- app/: app demo (Kivy/buildozer) da API do robo
- software/: servidor RoboMovel (SLAM, profundidade, navegacao) e firmware da base movel (movido de firmware/)
- simulacao/: projeto Godot do robo e script de lancamento servidor + simulacao
- modelos/: planta do 5o andar do bloco D, cena Blender do corredor e modelo real do robo
- partes/mdf/: chapas identificadas e nesting da base do robo (DXF/SVG/FCStd)
- projeto/render, relatorio/imagens, slides: renders finais e apresentacoes de progresso
- ferramentas/scripts: encaixe de chapas, planta do bloco D e render do corredor no Blender
- .gitignore: ignora backups do Blender/FreeCAD e .godot/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 23:38:16 -03:00

1.1 KiB

eval

Run a snippet of GDScript in the editor and return its result.

Input — code (required)

The snippet becomes the body of a function, so it is statements ending in return <value> — no extends, class_name or top-level func. Whatever return produces is what comes back; a print goes to the editor's Output panel, not to the result. Dictionaries and arrays come back as JSON, other values as text.

It runs on the editor's main thread with the same access the editor has, which is what makes it useful for checking an engine API, a node, a resource or a computed value without leaving the chat.

Caution

There is no sandbox and no timeout. A running GDScript function cannot be interrupted, so a loop that never ends hangs the editor — Stop cannot help, because the turn is not waiting on a request. Keep snippets short and terminating, and use the file and settings tools for changes you mean to keep; eval is for looking and testing.

A compile error is reported without the offending line: Godot names it in the Output panel and the editor log, so read_log with which=editor shows it.