# set_active_workspace (/docs/reference/mcp-tools/set_active_workspace)



{/* Generated by apps/docs/scripts/generate-mcp-pages.mjs — do not edit by hand. */}

Set the active workspace for the session/principal.

|                     |                        |
| ------------------- | ---------------------- |
| Required permission | `workspace:read`       |
| Capability ID       | `workspaces.setActive` |
| Destructive         | No                     |

## Parameters [#parameters]

| Parameter     | Type          | Required | Notes |
| ------------- | ------------- | -------- | ----- |
| `workspaceId` | string (uuid) | yes      |       |

## Input schema (JSON Schema) [#input-schema-json-schema]

```json
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}
```

## Access control [#access-control]

A call succeeds only when the personal access token's scopes **and** the holder's role both allow `workspace:read` (effective permission = scope ∩ role, default-deny). The tool runs inside the token owner's organization — tenancy is never a parameter.
