Contents

View Pull Request Attachment

GitHubViewPullRequestAttachmentTool · Tools · Connections

Open an attachment listed by github_get_pull_request or github_list_issue_comments. A PDF or an image (PNG, JPEG, GIF or WebP up to 5 MB) is shown to you in a message right after this call's result; a text file returns its text, cut at 100,000 characters. Anything else, and any file over 50 MB, returns the file's details and says it can't be displayed.

Parameters

NameTypeRequiredDescription
attachment_idstringYesAttachment id listed by the reading tool.
ownerstringNoRepository owner; defaults to the connection's account.
pull_numberintegerYesPull Request number.
repostringYesRepository name without the owner.

View Pull Request Attachment Tool#

github_view_pull_request_attachment opens a file for the agent to inspect in the conversation.

When to Use#

Open a GitHub upload from a pull request description or conversation comment. Find its reference with github_get_pull_request, github_get_issue_comment or github_list_issue_comments.

Parameters#

Parameter Type Required Description
owner string No The repository owner; defaults to the connected account
repo string Yes The repository name without the owner
pull_number integer Yes The pull request number
attachment_id string Yes The id from the read result’s attachments list

Returns#

The result includes owner, repo and pull_number alongside the file’s details in attachment and one of three view values:

  • shown: A PDF or an image (PNG, JPEG, GIF or WebP up to 5 MB) follows the tool results in the conversation.
  • text: The text field contains up to 100,000 characters, with a note if the text was cut.
  • not_viewable: A reason and note explain why the file cannot be displayed. This includes unsupported formats or files over 50 MB.

Notes#

The github_pull_requests group includes this tool under view_pull_request_attachment. It works with GitHub OAuth and GitHub App installation connections if GitHub serves the file to that connection.

Verdalia keeps shown files privately for 7 days without making a Library item or a share link.