Skip to content

pa_lab: describe_program and game_open MCP tools - #505

Merged
dayfine merged 1 commit into
agentsfrom
agents-mcp-slice4b
Nov 15, 2026
Merged

dayfine merged 1 commit into
agentsfrom
agents-mcp-slice4b

Conversation

@dayfine

@dayfine dayfine commented Nov 15, 2026

Copy link
Copy Markdown
Owner

The lab server had no way to ask the app what the selected program takes or whether a game is in front, though #504 added both as channel commands. This adds the describe_program and game_open MCP tools: each writes the fixed command into Lab/inbox the way shot does, parses the one reply line (describe_program {"id","options","prechecks","schema":1}, game_open yes / game_open no home|user_select|black|no_video) and refuses a failed line, a malformed reply or a reply that spans an app restart. prechecks: "unsupported" is accepted as a valid value until #485 lands. Tested with the lab/server unittest suite against the fake app (new test_app_query.py plus MCP endpoint cases); no live app.

Both send the app's read-only channel command, parse its one reply line and
refuse a failed line, a bad reply or a reply spanning an app restart.
prechecks 'unsupported' is a valid describe_program value until #485.
@dayfine
dayfine marked this pull request as ready for review November 15, 2026 01:53
@dayfine
dayfine merged commit 14182d1 into agents Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant