Get resource UID
get_uidRetrieve the uid:// identifier for a Godot 4.4+ project file using its path, enabling correct resource references in scripts and scenes.
Instructions
Get the uid:// of a file in the project (Godot 4.4+).
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": {
"filePath": "<filePath>"
},
"name": "get_uid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | The file, e.g. "res://player.gd". | |
| projectPath | No | Folder containing project.godot. Optional: defaults to the project Claude Code is running in. |