object-modify
Directly modify Unity object fields and properties. Inspect object structure with object-get-data before applying changes.
Instructions
Modify the specified Unity Object. Allows direct modification of object fields and properties. Use 'object-get-data' first to inspect the object structure before modifying.
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": {
"objectRef": "<objectRef>",
"objectDiff": "<objectDiff>"
},
"name": "object-modify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectRef | Yes | Object reference. SCHEMA: {"instanceID":12345} | |
| objectDiff | Yes | SerializedMember diff. SCHEMA: {"props":[{"name":"propertyName","value":any}],"fields":[...]} |