diff --git a/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py b/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py index 9f1a2fd6..109c056c 100644 --- a/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py +++ b/docs/agent-specs/2026-06-09-agent-loop-v1/orchestrator/probe_bridge_channel.py @@ -154,7 +154,9 @@ def main() -> int: "expression": "location.href + ' || ' + document.body.innerText.replace(/\\n+/g,' | ').slice(0,200)", "returnByValue": True}) print("\n==== 页面终态 ====") - print(str(r.get("result", {}).get("result", {}).get("value", ""))[:300]) + # call() 返回 CDP 应答的 result 字段:Runtime.evaluate 的值在 result.result.value + val = r.get("result", {}).get("value", "") if "result" in r else r + print(str(val)[:300]) except Exception as e: # noqa: BLE001 - 取证收尾,异常只记录 print(f"页面终态读取失败:{e}") return 0