get_job_jcl
Retrieve the JCL submitted for a specific job from JES spool datasets, with an optional line limit to control output size.
Instructions
Retrieve the JCL that was submitted for a job (from JESJCLIN / JESJCL / JCL spool DDs). Supports custom line limit.
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": {
"jobId": "<jobId>"
},
"name": "get_job_jcl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | JES job id, e.g. "JOB01234". | |
| maxLines | No | Maximum lines to return (caps at server configuration maximum). | |
| environment | No | Named target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default. |