Chat with AnythingLLM Workspace
chat_workspaceRun RAG chat or strict vector-grounded queries against an AnythingLLM workspace, with optional session partitioning and history reset.
Instructions
Execute a workspace RAG chat or strict vector-grounded query (POST /api/v1/workspace/:slug/chat). Supports chat, query, and automatic modes plus optional sessionId partitioning.
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": {
"slug": "<slug>",
"message": "<message>"
},
"name": "chat_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Conversation mode: 'query' (strict RAG from workspace embeddings), 'chat' (LLM + embeddings + rolling history), or 'automatic'. Defaults to the workspace setting. | |
| slug | Yes | Unique workspace slug to chat with. | |
| reset | No | When true, resets the workspace chat session history. | |
| message | Yes | Prompt or question to send to the workspace. | |
| sessionId | No | Optional external session identifier to partition chat history. |