playwright-browser-network-requests
To inspect network activity since page load, list network requests to review API calls and resources.
When & Why to Use This Skill
This Claude skill enables the inspection of real-time network activity within a Playwright-driven browser session. It allows developers and agents to list and review all network requests, including API calls and static resources, since the initial page load. By providing deep visibility into the underlying communication between the browser and servers, it facilitates advanced debugging, performance monitoring, and verification of web application behavior in automated workflows.
Use Cases
- API Debugging: Identify failed, unauthorized, or slow API requests during automated web interactions to diagnose backend integration issues.
- Resource Monitoring: Track the loading of static assets like scripts, images, and fonts to optimize page performance and ensure all dependencies are correctly fetched.
- Data Extraction Verification: Confirm that specific data-rich API responses are successfully received before attempting to extract content from the DOM, ensuring data integrity.
- Security & Compliance Auditing: Monitor outgoing network traffic to ensure sensitive data is only sent to authorized endpoints and to detect unexpected third-party tracking or scripts.
| name | playwright-browser-network-requests |
|---|---|
| description | "To inspect network activity since page load, list network requests to review API calls and resources." |
Usage
Use the MCP tool dev-swarm.request to send the payload as a JSON string:
{"server_id":"playwright","tool_name":"browser_network_requests","arguments":{}}
Tool Description
Returns all network requests since loading the page
Arguments Schema
The schema below describes the arguments object in the request payload.
{
"type": "object",
"properties": {
"includeStatic": {
"type": "boolean",
"default": false,
"description": "Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}
Background Tasks
If the tool returns a task id, poll the task status via the MCP request tool:
{"server_id":"playwright","method":"tasks/status","params":{"task_id":"<task_id>"}}