Skip to main content
Glama

Lighthouse MCP

find_unused_javascript

Identify and eliminate unused JavaScript code to optimize website performance and reduce bundle size. Analyze URLs, specify device emulation, and set minimum unused byte thresholds for targeted improvements.

Instructions

Find unused JavaScript code to reduce bundle size

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice to emulate (default: desktop)desktop
minBytesNoMinimum unused bytes to report (default: 2048)
urlYesURL to audit

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "device": { "default": "desktop", "description": "Device to emulate (default: desktop)", "enum": [ "desktop", "mobile" ], "type": "string" }, "minBytes": { "default": 2048, "description": "Minimum unused bytes to report (default: 2048)", "minimum": 0, "type": "number" }, "url": { "description": "URL to audit", "type": "string" } }, "required": [ "url" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielsogl/lighthouse-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server