reinvent_attach_pid
Attach a process ID to a registered job for live polling, letting the server reliably check if the process is still running.
Instructions
Attach a process ID to a registered user job for live polling.
After running a job manually and registering it with reinvent_register_job, call this to attach the PID. The server can then use os.kill(pid, 0) to check if the process is still running, improving polling reliability.
Args: job_id: Job ID from reinvent_register_job pid: Process ID of the running reinvent job
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>",
"pid": "<pid>"
},
"name": "reinvent_attach_pid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| job_id | Yes |