bdg implements a self-documenting architecture where agents learn capabilities through interaction, not documentation. This eliminates documentation drift and reduces context window consumption.
Get full method schema with parameters, return values, and examples:
bdg cdp Network.getCookies --describe
{ "domain": "Network", "method": "getCookies", "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.", "parameters": { "urls": { "type": "array", "items": {"type": "string"}, "optional": true, "description": "The list of URLs for which applicable cookies will be fetched. If not specified, it's assumed to be set to the list containing only the currently inspected URL." } }, "returns": { "cookies": { "type": "array", "items": {"$ref": "Cookie"}, "description": "Array of cookie objects." } }, "examples": [ "bdg cdp Network.getCookies", "bdg cdp Network.getCookies --params '{\"urls\":[\"https://example.com\"]}'", "bdg cdp Network.getCookies --params '{\"urls\":[\"https://example.com\",\"https://another.com\"]}'" ], "deprecated": false}
Every method description includes executable examples - copy and run immediately
Found 14 methods matching 'cookie':Network.getCookies Returns all browser cookiesNetwork.getAllCookies Returns all browser cookies for all URLsNetwork.deleteCookies Deletes browser cookies with matching name and url or domain/path/partitionKey pairNetwork.setCookie Sets a cookie with the given cookie data; may overwrite equivalent cookies if they existNetwork.setCookies Sets given cookiesStorage.getCookies Returns all browser cookiesStorage.setCookies Sets given cookies... (7 more results)
Found 8 methods matching 'javascript execution':Runtime.evaluate Evaluates expression on global objectRuntime.callFunctionOn Calls function with given declaration on the given objectDebugger.evaluateOnCallFrame Evaluates expression on a given call framePage.addScriptToEvaluateOnNewDocument Evaluates given script in every frame upon creation... (4 more results)
Error: Method 'getCokies' not found in domain 'Network'Did you mean: Network.getCookies (edit distance: 2) Network.setCookies (edit distance: 3) Network.getAllCookies (edit distance: 4)Tip: Use 'bdg cdp Network --list' to see all available methods
Levenshtein distance algorithm suggests closest matches for typos
{ "default": "Shows messages from current page load only (most recent navigation)", "whenEnabled": "Shows messages from ALL page loads during the session", "automaticBehavior": "Page navigations create new 'navigation contexts' - default filters to latest context"}
// 1. Discover DOM capabilitiesconst domHelp = await exec('bdg dom --help --json');// Learns: query, get, click, fill, submit, scroll, form// 2. Discover form structureconst form = await exec('bdg dom form --brief');// Learns: Field names, types, validation rules// 3. Fill form fieldsawait exec('bdg dom fill "input[name=email]" "[email protected]"');await exec('bdg dom fill "input[name=age]" "25"');// 4. Submit formawait exec('bdg dom submit "form"');// Success: Form submitted with validation