window_set_frame
Screen, windows & UI · macOS · Windows
Effect: write (strongest supported action). Status: gated.
Gated means the tool requires an installed app, a connected account, permission, or runtime availability. Check those requirements on the listed platform before using it.
macOS
Purpose
Pins a window (by window_id) to fixed bounds {x,y,w,h} in global points, so every take is framed identically across runs. Returns the actual post-constraint bounds. Refuses LMCP's own windows (web-automation sessions, tray) with own_window; use web_show for those. Requires Accessibility permission.
Required inputs
window_id— Window to move or resize, from list_windows.bounds— {x,y,w,h} global points.
Permissions and confirmation
No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — macOS
{
"properties": {
"bounds": {
"description": "{x,y,w,h} global points.",
"type": "object"
},
"window_id": {
"description": "Window to move or resize, from list_windows.",
"type": "string"
}
},
"required": [
"window_id",
"bounds"
],
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"bounds": {
"h": 720,
"w": 1280,
"x": 100,
"y": 100
},
"window_id": "101"
}Windows
Purpose
Moves and resizes a window to the given rectangle. Pass window_id (HWND from list_windows) and bounds {x,y,w,h}. Returns the actual post-move bounds. The first call returns a preview naming the window and moves nothing; confirm=true moves it. Windows-only.
Required inputs
window_id— The window id (HWND as a decimal string) from list_windows.bounds— Target rectangle in pixels.
Permissions and confirmation
Explicit confirmation parameter: inspect the schema and tool description before any real call. The documentation example keeps confirm false. Obtain user authorization before performing the action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — Windows
{
"properties": {
"bounds": {
"description": "Target rectangle in pixels.",
"properties": {
"h": {
"type": "integer"
},
"w": {
"type": "integer"
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
}
},
"required": [
"x",
"y",
"w",
"h"
],
"type": "object"
},
"confirm": {
"description": "Must be true to act on the window. Without it, returns a preview.",
"type": "boolean"
},
"window_id": {
"description": "The window id (HWND as a decimal string) from list_windows.",
"type": "string"
}
},
"required": [
"window_id",
"bounds"
],
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"bounds": {
"h": 720,
"w": 1280,
"x": 100,
"y": 100
},
"confirm": false,
"window_id": "101"
}