instance_job
Monitor background jobs started by instance_exec: check running/exited status and exit codes, tail logs, and stop processes with TERM then KILL.
Instructions
管理 instance_exec(background=true) 启动的任务。 action=status:运行中/已退出+退出码(需 log_file 读 .exit)+进程信息; action=logs:tail 日志(需 log_file);action=stop:先 TERM 后 KILL(进程组)。
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": {
"action": "<action>",
"pid": "<pid>"
},
"name": "instance_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| tail | No | ||
| action | Yes | ||
| log_file | No |