execute_hscript
Run HScript command strings in Houdini to perform built-in operations such as ls, cd, and opset, and receive stdout/stderr results.
Instructions
在 Houdini 中执行 HScript 命令字符串。
HScript 是 Houdini 的传统脚本语言(与 Python/HScript 两套接口并存),
适合执行 `ls`、`cd`、`opset` 等内建命令。调用结果以 stdout / stderr
形式返回。
参数说明:
- code: HScript 命令字符串(如 "cd /obj; ls")。空字符串 / 纯空白
会被服务端拒绝并返回错误。
返回字符串包含 stdout / stderr 两段;连接或服务端出错时返回
"Error (...): ..." 形式的提示。
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": {
"ctx": "<ctx>",
"code": "<code>"
},
"name": "execute_hscript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| code | Yes |