{"ok":true,"site":{"host":"webperf-snippets.net","url":"https://webperf-snippets.net/","type":"live","desc":"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.","tools":[{"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.","title":"List snippets","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/which-snippet","/DevTools-Overrides","/CLI","/MCP","/CoreWebVitals/CLS"]},{"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.","title":"Search snippets","annotations":{"readOnlyHint":true},"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."}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/which-snippet","/DevTools-Overrides","/CLI","/MCP","/CoreWebVitals/CLS"]},{"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.","title":"Get a snippet","annotations":{"readOnlyHint":true},"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"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/which-snippet","/DevTools-Overrides","/CLI","/MCP","/CoreWebVitals/CLS"]},{"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.","title":"Get the prompt to run a snippet","annotations":{"readOnlyHint":true},"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"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/which-snippet","/DevTools-Overrides","/CLI","/MCP","/CoreWebVitals/CLS"]}],"category":"Developer Tools","favicon":"/favicons/webperf-snippets.net.png","apiSurface":"spec","toolCount":4}}