network request <id> text output prints only the URL (request_detail has no text formatter)
Author: haoxdongCreated Sep 29, 2026Updated Sep 30, 2026
agent-browser network request <requestId> prints only the request URL in text mode. The help text says it shows "View full request/response detail (including body)", and --json does return that detail (headers, method, mimeType, responseBody, …).
Repro (0.31.2 and 0.38.1, darwin-arm64):
$ agent-browser open https://httpbin.org/get
$ agent-browser network requests
[26500B0C9376B661F28235333AA8E2CC] GET https://httpbin.org/get (Document) 200
$ agent-browser network request 26500B0C9376B661F28235333AA8E2CC
https://httpbin.org/get
$ agent-browser network request 26500B0C9376B661F28235333AA8E2CC --json
{"success":true,"data":{"headers":{…},"method":"GET","mimeType":"application/json","requestId":"…","resourceType":"Document","responseBody":"{\n \"args\": {}, …Expected: text output with the request and response detail (method, status, headers, body), as the help text describes.
Likely cause (main @ d01253d): cli/src/output.rs has no text formatter for the request_detail action. The result falls into the generic "Navigation response" branch, which prints only data.url:
// Navigation response
if let Some(url) = data.get("url").and_then(|v| v.as_str()) { … println!("{}", url); return; }Source: vercel-labs/agent-browser