editor_set_member
Sets an actor or script field or property by dotted path using a JSON value, then returns the value read back; edit-mode writes use undo.
Instructions
Writes a field or property of an actor or of one of its scripts by a dotted path; a struct on the way is written back. The value is JSON in the member's shape (a number, true, "text", an enum name, {"X":1,"Y":2,"Z":3}). In edit mode it goes through the editor's undo and marks the scene edited (editor_save keeps it); in play mode it lasts until play ends. Returns the value read back.
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": {
"actorId": "<actorId>",
"member": "<member>",
"value": "<value>"
},
"name": "editor_set_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The new value as JSON. | |
| member | Yes | The member path, e.g. Enabled or Settings.Speed. | |
| actorId | Yes | The actor's id. | |
| scriptType | No | Write to the actor's script of this type instead of the actor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| member | Yes | ||
| targetId | Yes | ||
| typeName | Yes | ||
| targetType | Yes | ||
| mainThreadId | Yes | ||
| recordedUndo | No |