Skip to content

You are not able to add granular permissions to the webfetch tool #46608

Description

@OpeOginni

Description

Contrary to whats on the docs, we are not able to add granular permissions to the webfetch and websearch tools.

Eg,

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "webfetch": {  
        "*": "ask",
        "https://en.wikipedia.org/*": "allow"
    }
  }
}

Plugins

No response

OpenCode version

1.18.25

Steps to reproduce

  1. Add granular permissions to the webfetch tool
  2. Try to run the TUI
  3. Notice error logged

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Ghostty

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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