Switch desktop (Space)
hs_goto_spaceSwitch to a specific macOS desktop by id or 1-based position, then verify the actual landing and report if macOS rearranged spaces.
Instructions
Switch to another macOS desktop, either by its id from hs_list_spaces or by its 1-based position. The result reports where the switch actually landed: arrived=false with landedOn set means the system did not end up on the requested desktop, which can happen when macOS auto-rearranges Spaces mid-switch. Verified, not assumed.
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": "hs_goto_space"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Space id from hs_list_spaces. | |
| position | No | 1-based user desktop position, numbered across all screens the way macOS and hs_list_spaces number them. |