Apple is introducing a new MCP server for Safari that lets coding agents inspect websites directly in the browser. Here are the details.
Do not use fprintf or printf debugging! This does not redirect to adb logcat. Use LOG(ERROR) etc. instead. See also the "Get Blink code to output to the adb log" section. Redirecting stdio to logcat, ...