Tool tree
Tested JavaScript snippets that measure and debug web performance. Your AI agent runs them for you, or you run them yourself in DevTools: the same code every time.
Implementation
gradeNot graded
gradeNot graded
page: Every page
list_snippetsAnswer
List the web performance snippets of this site, with the page and Markdown documentation of each one. Returns no code.
View tool JSON
{
"name": "list_snippets",
"kind": "answer",
"impl": "imperative",
"description": "List the web performance snippets of this site, with the page and Markdown documentation of each one. Returns no code.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}search_snippetsAnswer
Search the web performance snippets by category and/or keyword in their ID, title or description. Returns no code.
View tool JSON
{
"name": "search_snippets",
"kind": "answer",
"impl": "imperative",
"description": "Search the web performance snippets by category and/or keyword in their ID, title or description. Returns no code.",
"inputSchema": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "Filter by category. One of: CoreWebVitals, Loading, Interaction, Media, Resources, DevTools-Overrides."
},
"query": {
"type": "string",
"description": "Keyword to look for in the ID, title or description."
}
}
},
"page": "/"
}get_snippetAnswer
Get a snippet with its JavaScript code and the documentation of its page in Markdown: what it measures, the thresholds and how to read the result. The code runs in the browser console of the page to measure.
View tool JSON
{
"name": "get_snippet",
"kind": "answer",
"impl": "imperative",
"description": "Get a snippet with its JavaScript code and the documentation of its page in Markdown: what it measures, the thresholds and how to read the result. The code runs in the browser console of the page to measure.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Snippet ID, such as \"LCP\", \"INP\" or \"TTFB-Sub-Parts\". Use list_snippets or search_snippets to discover them."
}
},
"required": [
"id"
]
},
"page": "/"
}get_snippet_promptAnswer
Get the instructions to run a snippet on any URL with the webperf-snippets CLI, which loads the page in headless Chromium, and to report the result. Pass the URL to measure, or the prompt asks for it.
View tool JSON
{
"name": "get_snippet_prompt",
"kind": "answer",
"impl": "imperative",
"description": "Get the instructions to run a snippet on any URL with the webperf-snippets CLI, which loads the page in headless Chromium, and to report the result. Pass the URL to measure, or the prompt asks for it.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Snippet ID, such as \"LCP\", \"INP\" or \"TTFB-Sub-Parts\". Use list_snippets or search_snippets to discover them."
},
"url": {
"type": "string",
"description": "URL of the page to measure."
}
},
"required": [
"id"
]
},
"page": "/"
}