slurm_logs
Read SLURM job output logs by job ID or array task, including logs for jobs submitted through this server, or open a known log file directly by path.
Instructions
Read SLURM job output log. For array jobs pass one task, e.g. "12345_3" (logs are slurm__.out). Remembers the --output pattern of jobs submitted through slurm_submit/slurm_submit_file, so logs of finished jobs are found even where sacct stores no StdOut; pass path to read a known log file directly.
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_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Log file path on the cluster (skips the lookup), e.g. the --output file of a job submitted outside this server | |
| lines | No | Number of lines to read (default 50, use 0 for all) | |
| job_id | Yes | Job ID "12345", or for an array job one task "12345_3" |