stop_job
Stop a running OpenFOAM job gracefully so current results are written, or force termination when immediate shutdown is needed.
Instructions
Stop a running job, gracefully (results written) or forcibly.
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": {
"job_id": "<job_id>"
},
"name": "stop_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'write': solver writes the current time and exits cleanly (controlDict stopAt writeNow); 'now': exit at next step without writing; 'kill': terminate the process group immediately. | write |
| job_id | Yes |