Problem
read_image and read_document tools fail with "No vision provider configured" when the only available provider is claude-cli (no separate Anthropic API key, no Gemini/OpenRouter configured).
Root Cause
The media tool fallback chains (visionProviderPriority, documentProviderPriority) do not include claude-cli. They only list openrouter, gemini, anthropic, and dashscope.
claude-cli is registered under that name in the provider registry, not as anthropic, so registry.Get(ctx, "anthropic") returns an error and the chain comes up empty.
Expected Behavior
Since Claude CLI natively supports vision (via stream-json input with images), it should be included in the fallback chain so media tools work out of the box on claude-cli-only installations.
Environment
- GoClaw with only
claude-cli provider configured
- No
providers.anthropic.api_key set
read_image called with a valid image path
Problem
read_imageandread_documenttools fail with "No vision provider configured" when the only available provider isclaude-cli(no separate Anthropic API key, no Gemini/OpenRouter configured).Root Cause
The media tool fallback chains (
visionProviderPriority,documentProviderPriority) do not includeclaude-cli. They only listopenrouter,gemini,anthropic, anddashscope.claude-cliis registered under that name in the provider registry, not asanthropic, soregistry.Get(ctx, "anthropic")returns an error and the chain comes up empty.Expected Behavior
Since Claude CLI natively supports vision (via stream-json input with images), it should be included in the fallback chain so media tools work out of the box on claude-cli-only installations.
Environment
claude-cliprovider configuredproviders.anthropic.api_keysetread_imagecalled with a valid image path