Add app-server remote browser bridge

Add an experimental browserSession command/notification pair, post commands to a configurable remote browser HTTP endpoint, and emit browser state updates back to clients.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Liang-Ting Jiang
2026-03-24 03:58:02 +00:00
parent 527244910f
commit 4b69a17b9f
19 changed files with 696 additions and 5 deletions

View File

@@ -0,0 +1,60 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"BrowserSessionState": {
"properties": {
"selectedTabId": {
"type": "string"
},
"tabs": {
"items": {
"$ref": "#/definitions/BrowserTabState"
},
"type": "array"
}
},
"required": [
"selectedTabId",
"tabs"
],
"type": "object"
},
"BrowserTabState": {
"properties": {
"id": {
"type": "string"
},
"selected": {
"type": "boolean"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"selected",
"title",
"url"
],
"type": "object"
}
},
"properties": {
"browserSessionId": {
"type": "string"
},
"browserState": {
"$ref": "#/definitions/BrowserSessionState"
}
},
"required": [
"browserSessionId",
"browserState"
],
"title": "BrowserSessionUpdatedNotification",
"type": "object"
}