List Spaces
list_spacesLists every macOS Space on every display, including desktop number, name, note, apps, and active status; use it first to obtain valid Space identifiers for other tools.
Instructions
List every macOS Space (desktop) on every display: desktop number, name, note, the apps with windows on it, and which one is active. Read-only. Call this first to get valid Space numbers and names for the other tools. Fails if Spacepal is not running or has not written its list yet.
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": "list_spaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spaces | Yes | ||
| current | Yes | Name of the active Space |