Skip to content

Debug-optimize-lcp skill's resourceTypes: ["Image", "Font"] filter is rejected by list_network_requests #3012

Closed

Description

@coygeek

Description of the bug

Step 4 of skills/debug-optimize-lcp/SKILL.md tells agents to call list_network_requests "filtered by resourceTypes: ["Image", "Font"]". The tool's resourceTypes enum is lowercase, so the call fails input validation and the agent gets no network waterfall for the LCP resource until it retries with lowercase values.

Actual behavior

On both tested builds the documented call returned isError: true with:

Input validation error: Invalid arguments for tool list_network_requests: resourceTypes.0: Invalid option: expected one of "document"|"stylesheet"|"image"|"media"|"font"|"script"|"texttrack"|"xhr"|"fetch"|"prefetch"|"eventsource"|"websocket"|"manifest"|"signedexchange"|"ping"|"cspviolationreport"|"p...

The lowercase control returned reqid=2 GET http://127.0.0.1:PORT/hero.svg [200] on both builds.

Reproduction

  1. Serve this fixture as lcp.html from a loopback server (port shown as PORT), with any hero.svg image beside it:
<!doctype html><html lang="en"><title>Fixture</title><h1>Fixture</h1><img src="hero.svg" width="400" height="300" alt="hero"></html>
  1. Start each tested build over stdio with --headless --isolated --no-usage-statistics --no-performance-crux and send these tools/call requests:
{"name":"navigate_page","arguments":{"pageId":1,"url":"http://127.0.0.1:PORT/lcp.html"}}
{"name":"list_network_requests","arguments":{"pageId":1,"resourceTypes":["Image","Font"]}}
{"name":"list_network_requests","arguments":{"pageId":1,"resourceTypes":["image","font"]}}

Expectation

The skill's Step 4 ("Check the Network Waterfall") instructs agents to filter list_network_requests by resourceTypes: ["Image", "Font"] to find the LCP resource. Following the documented call should return the image and font requests.

MCP configuration

--headless --isolated --no-usage-statistics --no-performance-crux unless the reproduction states otherwise (update checks disabled with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1).

Chrome DevTools MCP version

1.10.1 (npm) and main 5ddb0a3 (local build)

Chrome version

154.0.8037.98 (stable)

Node version

v22.23.2

Operating system

macOS 27.0

Environment details

  • Release build: [email protected] from npm.
  • main build: local build of main at 5ddb0a3.
  • Google Chrome 154.0.8037.98 (stable), Node v22.23.2, macOS 27.
  • skills/debug-optimize-lcp/SKILL.md is identical at tag chrome-devtools-mcp-v1.10.1 and on main.

Evidence

  • Expected source: skills/debug-optimize-lcp/SKILL.md:65 ("Call list_network_requests with pageId filtered by resourceTypes: ["Image", "Font"]").
  • Failure source: tools/call results from both tested builds quoted under Actual behavior; the resourceTypes enum in tools/list and docs/tool-reference.md lists lowercase values only.
  • Evidence provenance: observed
  • Local verification: reproduced
  • Reproduction completeness: complete

The full open and closed issue and PR corpus was screened as of 2026-10-06; no issue or PR mentions this line or capitalized resourceTypes. The chrome-devtools-cli skill has a separate capitalized --resourceTypes Fetch example in a different file, reported separately.

Fix check

Failing now: the skill's Step 4 filter, sent as written, returns an input validation error. Restored: the filter shown in the skill, sent as written after loading the fixture, returns the hero.svg request without a validation error. Control: ["image","font"] keeps returning the same request.

Activity

  1. added theissue type on Oct 12, 2026
  2. added
    documentation
    on Oct 12, 2026
  3. added a commit that references this issue on Oct 13, 2026
    d5d2f08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmeddocumentationp3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions