Skip to content

Browser tool schema breaks non-Anthropic models even when disabled #197

@odrobnik

Description

@odrobnik

When using non-Anthropic models (Google Gemini, OpenAI GPT), the browser tool causes a 400 error even when explicitly disabled in config.

Error:
400 Invalid schema for function 'browser': schema must be a JSON Schema of 'type: "object"', got 'type: "None"'.

Config:

{
  "tools": {
    "browser": {
      "enabled": false
    }
  },
  "agent": {
    "model": "google/gemini-3-pro-preview"
  }
}

Expected: Disabled tools should not be sent to the model provider.

Actual: Browser tool schema is still included and causes validation errors with OpenAI/Google.

Environment: macOS, clawdbot 2026.1.4

Note: I have API keys for Google and OpenAI set up in .env in ~/.clawdbot/.env

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions