list_models
Register available AI models and API keys for a workspace by scanning environment variables for Anthropic, Gemini, OpenAI, and local Ollama instances.
Instructions
Register available AI models and API keys for this workspace.
Call once after start_web_app. Scan your environment for API keys and Ollama:
process.env.ANTHROPIC_API_KEY → add claude-haiku-4-5-20251001, claude-sonnet-4-6, claude-opus-4-8
process.env.GEMINI_API_KEY → add gemini-2.5-flash-lite, gemini-2.5-flash, gemini-2.5-pro
process.env.OPENAI_API_KEY → add gpt-4o-mini, gpt-4o
Ollama: fetch (process.env.OLLAMA_URL ?? "http://localhost:11434") + "/api/tags" → add each model.name; catch errors silently
Default model priority (first available wins): gemini-2.5-flash-lite → claude-haiku-4-5-20251001 → gpt-4o-mini
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | ||
| models | Yes | All model IDs available in your environment | |
| defaultModel | No | Override the priority-based default | |
| anthropicApiKey | No | ||
| geminiApiKey | No | ||
| openaiApiKey | No |