screen.zoom_to
Zooms every display capture that has zoom on to a point of the screen, for a while.
JSON-RPC 2.0project.write
Parameters
- xnumberDisplay points from the display's left edge.
- ynumberDisplay points from its top edge.
- fxnumberInstead of x: a fraction of its width, 0 to 1.
- fynumberInstead of y: a fraction of its height, 0 to 1.
- displaystringA display from capture.targets. Default: the main display.
- scalenumberHow far to zoom in, 1.1 to 6.
- hold_snumberHow long to hold it, 0.5 to 15 seconds. Default 4.
Result
- at[number, number]The point, in screen coordinates.
- hold_snumberHow long it holds.
Errors
Invalid params (-32602) without x and y or fx and fy. Not found (-32004) for an unknown display.
From an AI agent
The MCP server's zoom_to (action: in) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "screen.zoom_to", "params": { "fx": 0.5, "fy": 0.5, "scale": 2 }}lightair call screen.zoom_to '{"fx":0.5,"fy":0.5,"scale":2}'const result = lightair.call("screen.zoom_to", {"fx":0.5,"fy":0.5,"scale":2});Result
{ "at": [756, 491], "hold_s": 4 }