press
Sends a 5250 key to the host after optional field fills and returns the resulting screen, enabling menu navigation, data entry, and automated testing.
Instructions
Send a key to the host (after optional fills) and return the screen the host answers with. Reset only clears an operator error locally.
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": {
"key": "<key>"
},
"name": "press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Enter, F1-F24, PageUp, PageDown, Help, Clear, Print, SysReq, Attn, Reset | |
| cursor | No | put the cursor here first: "row,col", "#index" or a label (for F4 prompts, cursor-sensitive options, help) | |
| expect | No | text that must be on screen, or "row:text" | |
| values | No | fields to fill first (same as fill) | |
| session | No | session name; lets you run several side by side | main |
| timeout | No | ||
| wait_for | No | keep waiting until this text appears | |
| screen_id | No | screen_id from your last read; refused if the screen changed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |