slurm_get_job_output
Monitor training progress by tailing the last lines of a Slurm job's stdout log file.
Instructions
Tail the stdout log file of a Slurm job to monitor training progress.
Reads the last N lines of the job's output file. If log_path is omitted, defaults to slurm-{job_id}.out in the user's home directory.
Args: job_id: Slurm job ID. host: Slurm head node hostname (overrides SLURM_HOST). log_path: Explicit path to the log file (optional). lines: Number of lines to return (default: 50). gateway_id: Gateway UUID for the target site.
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": "slurm_get_job_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| lines | No | ||
| job_id | Yes | ||
| log_path | No | ||
| gateway_id | No |