GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] webfetch tool schema missing required 'format' parameter · Issue #6288 · anomalyco/opencode

[BUG] webfetch tool schema missing required 'format' parameter #6288

New issue
Copy link
New issue
Copy link
Closed
Closed
[BUG] webfetch tool schema missing required 'format' parameter#6288
Copy link
Assignees
rekram1-node

Description

@chaithanya009
chaithanya009
opened on Dec 28, 2025
Issue body actions
Image

Description

The webfetch tool schema exposed to LLMs is missing the required format parameter. When the LLM calls webfetch without specifying format, the tool fails with a validation error.

Error message:

Invalid option: expected one of "text"|"markdown"|"html"

Root cause:
The tool definition in webfetch.ts defines format as a required parameter:

format: z.enum(["text", "markdown", "html"])
  .describe("The format to return the content in")

However, the schema exposed to the LLM only includes:

  • url (required)
  • timeout (optional)

The format parameter is missing from the schema definition given to the model.

OpenCode version

1.0.204

Steps to reproduce

  1. Start OpenCode
  2. Ask it to fetch a URL (e.g., "fetch https://opencode.ai/docs")
  3. Observe the validation error about missing format parameter

Operating System

macOS

Terminal

Ghostty

Activity

  1. github-actions
    assigned
    rekram1-node
    on Dec 28, 2025
  2. zeroaddresss commented on Dec 29, 2025

    @zeroaddresss
    zeroaddresss
    on Dec 29, 2025
    More actions

    Also getting this on 1.0.207 on Arch Linux and Ghostty

    Reacted by chaithanya
  3. baeseokjae commented on Dec 30, 2025

    @baeseokjae
    baeseokjae
    on Dec 30, 2025
    More actions

    Hi @rekram1-node! I noticed the missing format parameter in the webfetch tool schema. I’d like to fix this by adding it to the definition. May I be assigned to this?

  4. rekram1-node commented on Dec 31, 2025

    @rekram1-node
    rekram1-node
    on Dec 31, 2025
    Member
    More actions

    someone else made a pr for that, merged it a couple days ago, thanks tho!

  5. rekram1-node
    closed this as completedon Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.