Get ClickUp Spaces
clickup_get_spacesRetrieve all spaces in a ClickUp team/workspace to browse workspace structure; optionally include archived spaces and choose markdown or JSON output.
Instructions
Get all spaces in a team/workspace.
Spaces are the second level in the ClickUp hierarchy (Team → Space → Folder → List → Task). This tool retrieves all spaces within a specific team.
Args:
team_id (string): The team/workspace ID
archived (boolean): Include archived spaces (default: false)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON format: { "spaces": [ { "id": "string", "name": "string", "private": boolean, "multiple_assignees": boolean, "features": { ... } } ] }
Examples:
Use when: "Show me all spaces in team 123456"
Use when: "List the spaces in my workspace"
Don't use when: You need to list teams (use clickup_get_teams)
Error Handling:
Returns "Error: Resource not found" if team_id is invalid (404)
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": {
"team_id": "<team_id>"
},
"name": "clickup_get_spaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | Team/workspace ID | |
| archived | No | Include archived spaces | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |