get_workspace
Retrieve detailed information about a specific workspace using its unique slug. Perfect for accessing workspace configuration and metadata in your AI document chat platform.
Instructions
Get details of a specific workspace
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes |
Implementation Reference
- src/index.ts:62-80 (registration)Tool registration - get_workspace is not present; the tool is named 'workspace_get' in the tool list (line 70). This is the registration of the workspace_get tool.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: [ { name: "auth_verify", description: "Verify API token", inputSchema: { type: "object", properties: {}, required: [] } }, { name: "system_check_token", description: "Check API token", inputSchema: { type: "object", properties: {}, required: [] } }, { name: "system_generate_api_key", description: "Generate API key", inputSchema: { type: "object", properties: {}, required: [] } }, { name: "system_env_dump", description: "Get system environment", inputSchema: { type: "object", properties: {}, required: [] } }, { name: "workspace_list", description: "List all workspaces", inputSchema: { type: "object", properties: {}, required: [] } }, { name: "workspace_get", description: "Get workspace details", inputSchema: { type: "object", properties: { slug: { type: "string" } }, required: ["slug"] } }, { name: "workspace_create", description: "Create workspace", inputSchema: { type: "object", properties: { name: { type: "string" }, slug: { type: "string" } }, required: ["name"] } }, { name: "workspace_update", description: "Update workspace", inputSchema: { type: "object", properties: { slug: { type: "string" }, name: { type: "string" } }, required: ["slug"] } }, { name: "workspace_delete", description: "Delete workspace", inputSchema: { type: "object", properties: { slug: { type: "string" } }, required: ["slug"] } }, { name: "chat_send", description: "Send chat message", inputSchema: { type: "object", properties: { workspace: { type: "string" }, message: { type: "string" } }, required: ["workspace", "message"] } }, { name: "chat_stream", description: "Stream chat", inputSchema: { type: "object", properties: { workspace: { type: "string" }, message: { type: "string" } }, required: ["workspace", "message"] } }, { name: "thread_list", description: "List threads", inputSchema: { type: "object", properties: { workspace: { type: "string" } }, required: ["workspace"] } }, { name: "document_list", description: "List documents", inputSchema: { type: "object", properties: {}, required: [] } }, { name: "openai_list_models", description: "List models", inputSchema: { type: "object", properties: {}, required: [] } }, { name: "openai_chat_completion", description: "Chat completion", inputSchema: { type: "object", properties: { model: { type: "string" }, messages: { type: "array" } }, required: ["model", "messages"] } }, ], - src/index.ts:93-93 (handler)Handler for workspace_get - calls the AnythingLLM API endpoint '/workspace/' with the slug parameter. This is the closest match to 'get_workspace' in the codebase.
else if (name === "workspace_get") { result = await apiRequest("/workspace/" + args?.slug); }