Skip to content

DevTools

Claudezilla provides browser DevTools capabilities through three tools that let you inspect console output, monitor network activity, and execute JavaScript in the page context.

Get captured console logs from the page. Captures console.log, console.warn, console.error, and uncaught exceptions. Works on background tabs.

ParameterTypeRequiredDefaultDescription
tabIdnumberNoActive tabTarget tab ID. Works on background tabs.
levelstringNoAll levelsFilter by log level: log, warn, error, info, debug
clearbooleanNofalseClear logs after returning
limitnumberNo100Maximum logs to return
timeoutnumberNo150000Request timeout in ms (5000-300000)
// Get all console errors
const result = await firefox_get_console({ level: "error" });
// Get recent logs and clear the buffer
const result = await firefox_get_console({ limit: 20, clear: true });
// Check a specific tab's console
const result = await firefox_get_console({ tabId: 42, level: "warn" });
  • Console capture is opt-in and must be enabled on the page.
  • Logs accumulate until cleared. Use clear: true to reset the buffer after reading.
  • Uncaught exceptions are captured alongside regular console output.

Get captured network requests. Shows XHR, fetch, script, image, and other resource requests with status codes and timing. Works on background tabs.

ParameterTypeRequiredDefaultDescription
tabIdnumberNoActive tabTarget tab ID. Works on background tabs.
typestringNoAll typesFilter by request type: xmlhttprequest, script, stylesheet, image, font, etc.
statusstringNoAllFilter by status: pending, completed, error
clearbooleanNofalseClear requests after returning
limitnumberNo50Maximum requests to return
includeHeadersbooleanNofalseInclude response headers in output (stripped by default to reduce payload)
timeoutnumberNo150000Request timeout in ms (5000-300000)
// Get all failed network requests
const result = await firefox_get_network({ status: "error" });
// Monitor API calls only
const result = await firefox_get_network({ type: "xmlhttprequest" });
// Get requests with full headers for debugging
const result = await firefox_get_network({
type: "xmlhttprequest",
includeHeaders: true,
limit: 10
});
  • Response headers are stripped by default to reduce payload size. Pass includeHeaders: true when you need them.
  • Request bodies are never captured to prevent credential leakage.
  • Sensitive URL parameters are redacted in the output.

Execute JavaScript in the page context and return the result. Useful for extracting data, checking state, or debugging. Works on background tabs.

ParameterTypeRequiredDefaultDescription
tabIdnumberNoActive tabTarget tab ID. Works on background tabs.
expressionstringYes-JavaScript expression to evaluate
timeoutnumberNo150000Request timeout in ms (5000-300000)
// Get the page title
const result = await firefox_evaluate({ expression: "document.title" });
// Read localStorage
const result = await firefox_evaluate({
expression: "window.localStorage.getItem('user-preferences')"
});
// Check element count
const result = await firefox_evaluate({
expression: "document.querySelectorAll('.item').length"
});
// Get computed style
const result = await firefox_evaluate({
expression: "getComputedStyle(document.querySelector('.hero')).fontSize"
});
  • Security restrictions apply. Dangerous patterns are blocked, including fetch(), eval(), and cookie access.
  • The expression runs in the page’s own context, so you have access to the page’s DOM, globals, and framework state.
  • Return values are serialized to JSON. Complex objects may be truncated.