Repository navigation
Conversation
Extend existing Actions tools with read-only Checks API methods and compact workflow-to-check identifiers. Keep list responses small and fetch diagnostic output and annotation pages only on request. Refs #1942 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d8331c1e-a71c-4a15-bc68-7c00064a0ee5
next-ace
Bot
dismissed stale reviews from themself
October 8, 2026 14:16
Removing security test review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expose check-run output and paginated annotations through the existing
actions_getandactions_listtools. Keep check lists small.Why
Follow-up to #1942. This change preserves the smaller Actions list payloads from #3047.
Agents can list failed checks today, but cannot retrieve their diagnostic output or annotations through MCP. This change adds the missing detail operations without adding tool names.
What changed
actions_get(method="get_check_run")for one check's output, provider identity, and annotation count.actions_listmethodslist_check_runsandlist_check_run_annotations. Support reference or suite lookup, API filters, and explicit pagination.check_suite_idandcheck_run_idfields to workflow summaries. Extract job-to-check identifiers without fetching the URL or assuming matching IDs.MCP impact
actions_getgains one method.actions_listgains two methods.Tool names and default toolsets stay unchanged. Additional methods still increase the advertised JSON size:
actions_listactions_getpull_request_readguidanceThese measurements use minified registration snapshots. They are byte counts, not model-token or routing-quality measurements.
Fixture responses add 20 bytes per workflow run and 25 bytes per job. A check summary remains 323 bytes with 50,000 bytes of upstream output text.
Prompts tested (tool changes only)
No live agent prompts were run. Mocked MCP sessions cover the operations for these example prompts:
Security / limits
Provider text uses the content sanitizer and existing repository-visibility IFC labels. Workflow lists make no additional API requests. API errors remain errors rather than empty successful results.
Tool renaming
deprecated_tool_aliases.goNote: if you're renaming tools, you must add the tool aliases. For more information on how to do so, please refer to the official docs.
Lint & tests
./script/lint:script/lintpassed with 0 issues../script/test:script/testpassed, including race detection.UPDATE_TOOLSNAPS=true go test ./...: passed.go test ./pkg/github -run '^TestActionsCheckPayloadSizes$' -count=1 -v: passed with the measurements above.Live GitHub E2E tests were not run.
Docs
script/generate-docs: passed.