Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DRIFTOS_API_URL | No | The URL of the DriftOS backend API | http://localhost:3000 |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| driftos_route_message | Route a message to the appropriate conversation branch using semantic drift detection. Returns one of three actions:
Args:
Returns: { "action": "BRANCH" | "STAY" | "ROUTE", "branchId": string, "branchTopic": string, "confidence": number, "isNewBranch": boolean } Example:
|
| driftos_get_context | Get assembled context for a conversation branch, including messages and facts from related branches. This is what you pass to an LLM instead of the entire conversation history. Returns only the relevant messages from the current branch plus accumulated facts. Args:
Returns: { "branchId": string, "branchTopic": string, "messages": [ { "role": "user" | "assistant", "content": string } ], "allFacts": [ { "branchTopic": string, "isCurrent": boolean, "facts": [{ "key": string, "value": string, "confidence": number }] } ] } Use this to build focused LLM context windows instead of dumping entire conversation history. |
| driftos_build_prompt | Build a ready-to-use prompt for LLM calls with context and facts. Args:
Returns: { "system": string, // Full system prompt with topic and facts "messages": [{ "role": string, "content": string }] // Conversation messages } Use this to get a complete prompt ready for OpenAI/Anthropic/etc API calls. |
| driftos_list_branches | List all branches in a conversation with their topics and message counts. Use this to understand the structure of a conversation and see what topics have been discussed. Args:
Returns: [ { "id": string, "topic": string, "messageCount": number, "isActive": boolean } ] |
| driftos_get_facts | Get extracted facts from a specific branch. Args:
Returns: [{ "key": string, "value": string, "confidence": number }] |
| driftos_extract_facts | Trigger fact extraction for a branch. Use when you want to explicitly extract facts from the current conversation state. Args:
Returns: { "facts": [{ "key": string, "value": string }] } |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |