set_hda_section_content
Write or update content in a specific HDA definition section, including event scripts, with optional Python or HScript language selection.
Instructions
Write content to a specific section in an HDA definition.
Event scripts (OnCreated, OnLoaded, OnUpdated, OnDeleted, OnInputChanged,
PreFirstCreate, PostLastDelete, ...) are HScript unless marked Python:
pass language="python" (or "hscript"); left out, code using kwargs,
hou. or import is marked Python. script_language reads it back.
Args: ctx: MCP context. node_path: Node path. section_name: Section name. content: Section content. language: For an event script, "python" or "hscript".
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": {
"node_path": "<node_path>",
"section_name": "<section_name>",
"content": "<content>"
},
"name": "set_hda_section_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| language | No | ||
| node_path | Yes | ||
| section_name | Yes |