run_openfoam_command
Execute whitelisted OpenFOAM utilities (blockMesh, checkMesh) in a case directory, returning exit code and output tail for validation and debugging.
Instructions
Run a whitelisted OpenFOAM utility (blockMesh, checkMesh, foamDictionary, renumberMesh, decomposePar, foamListTimes, surfaceCheck, transformPoints) inside a case directory. Requires OpenFOAM installed and its environment sourced. Returns return code and the tail of stdout/stderr.
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": {
"case_dir": "<case_dir>",
"command": "<command>"
},
"name": "run_openfoam_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| case_dir | Yes |