app_close
Close a specified window gracefully on an agent-controlled virtual screen. Pass the current window ID from the windows tool, and refresh it after remaps because IDs change.
Instructions
Ask a window of the screen to close gracefully. Window ids change when a window remaps, so take the id from windows rather than from an older reply.
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": {
"toplevel": "<toplevel>"
},
"name": "app_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screen | No | screen name; optional when the session owns exactly one screen | |
| toplevel | Yes | window id from the windows tool |