Execute Mel
execute_melEvaluate MEL commands in Maya for custom or unsupported operations. Control undo grouping, timeouts, and target specific sessions.
Instructions
Evaluate a MEL command inside Maya (escape hatch).
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": {
"cmd": "<cmd>"
},
"name": "execute_mel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | MEL command to evaluate. | |
| undo | No | Wrap execution in a single undo chunk (default True). | |
| timeout_s | No | Timeout in seconds (1-3600). | |
| session_key | No | Target Maya session; omit if only one is connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||