session_close
Sign off and close an IBM i 5250 session to release the virtual device, preventing a hung interactive job and 'Attempt to Recover Interactive Job' on the next run.
Instructions
Sign off and close the session, releasing the virtual device. Always do this when finished: just dropping the connection leaves a disconnected interactive job on the box, so the next run meets an "Attempt to Recover Interactive Job" screen instead of the application, and it holds licensed interactive capacity.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "session_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | which open session to act on. Omit unless you opened more than one (default: "default") | |
| signOff | No | type signoff on the command line first, when the screen has one (default: true). Pass false to drop the connection immediately |