ragListWorkspaces( )
Lists all RAG workspaces with their open status.
function ragListWorkspaces(options?): Promise<RagWorkspaceInfo[]>;
| Name | Type | Required? | Description |
|---|
| options | RPCOptions | ✗ | Optional RPC transport options |
Promise<RagWorkspaceInfo[]> — Array of workspace info.
| Field | Type | Description |
|---|
| name | string | Workspace name |
| open | boolean | Whether the workspace is currently loaded in memory |
| Error | When |
|---|
RAG_LIST_WORKSPACES_FAILED | The operation fails |
const workspaces = await ragListWorkspaces();
// [{ name: "default", open: true }, { name: "my-docs", open: false }]