job_logs
Retrieve tail lines from a Kratos simulation job log, filter by case-insensitive substring, and select an MPI rank to inspect rank-specific output for debugging.
Instructions
Return the last 'tail' lines of a job's simulation log, optionally only lines containing the 'grep' substring (case-insensitive). For MPI jobs, 'rank' selects another rank's log (job_status lists rank_logs); rank 0 / unset is the main log.
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": "job_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | ||
| rank | No | ||
| tail | No | ||
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||