Skip to main content
Glama

godot_write_script

Create or update GDScript files in Godot 4 projects by writing source code to specified paths within the editor's resource system.

Instructions

Writes (creates or overwrites) a GDScript file at the given path.

Args:

  • file_path (string): res:// path e.g. "res://player/player.gd"

  • content (string): Full GDScript source code to write.

Returns: Confirmation with the file path.

Examples:

  • Use when: "Create a new movement script for the Player"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesres:// path for the script
contentYesFull GDScript source code

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ricky-yosh/godot-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server