List Workspaces
list_workspacesRetrieve all Workspaces owned by or shared with the authenticated account, or provide a Workspace ID to inspect details and storage readiness for that Workspace.
Instructions
List the Workspaces the authenticated account owns and those other accounts share with it, with each one's id, name, state, owning account (account: user_id and email), the caller's role there (owner, member or viewer), agent (default_agent_id), main conversation id (main_session_id), current revision and root copy id. state is active, adopting (its files are moving to new storage; runs are refused until it is active again), deleting or deleted. All Workspaces are returned in one response, without paging. No run starts and nothing changes. With workspace_id, the workspaces list contains only that Workspace, including storage_readiness (state, since, pending_reason, retryable) when its storage is still starting. The root copy exists only once storage_readiness.state is ready.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | No | The Workspace UUID. Omitted, all Workspaces are returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaces | Yes | The caller's own and shared Workspaces; one entry when workspace_id was given. |