read_dataset
Reads sequential dataset or PDS member content with optional member, line limit, and EBCDIC encoding hints, helping agents inspect mainframe data while capping output.
Instructions
Read the content of a sequential dataset or a PDS member (output is line-capped). Supports custom line limits and EBCDIC encoding hints.
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": {
"dsn": "<dsn>"
},
"name": "read_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsn | Yes | Dataset name, e.g. "SYS1.PROCLIB". | |
| member | No | PDS member name (1–8 chars). Omit for a sequential dataset. | |
| encoding | No | Text encoding hint. Use "ibm1047" for EBCDIC datasets that the Zowe SDK may not auto-convert. | |
| 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. |