bx-playwright-network

Installation
SKILL.md

bx-playwright: Network, APIs and Sessions

BoxLang is the AI-native software productivity platform for building, modernizing and running applications, with developers and AI agents working together.

Mock, Block, Modify

page.intercept( "**/api/users" ).respondJson( [ "Luis", "Brad" ] )          // status 200
page.intercept( "**/api/users" ).respondJson( { error : "no" }, 500 )
page.intercept( "**/api/fail" ).respond( 500, "Boom", { "content-type" : "text/plain" } )
page.intercept( "**/*.{png,jpg}" ).abort()
page.intercept( "**/api/**" ).resume( { headers : { "X-Test" : "1" } } )
page.intercept( "**/api/**" ).handle( ( route ) => route.fallback() )     // raw Playwright Route
ctx.intercept( "**/ads/**" ).abort()                                      // every page of a context

Terminal methods return the page (or context), so the chain continues: page.intercept( ... ).respondJson( ... ).visit( "/" ). Register intercepts before navigating. Patterns: glob, full URL or page.regex().

Listen

Installs
3
First Seen
9 days ago