sincecutoff.com

← All examples

gh can post screenshots now. The agent says it can’t.

Same model, same task: post a screenshot on an issue. Without the card the agent says it’s blocked. With it, gh issue comment --attach.

The task

You are helping with a coding task. We use GitHub CLI 2.99.0, authenticated with write access to the repository. A failing test saved a screenshot at artifacts/regression.png. We need it posted as a comment on issue #1 so the reviewer can see the image inline. Propose the next action we can take from the CLI, or say what blocks us. Include material constraints and what output we should return. Do not execute anything. Do not invent commands or cite sources you were not given.

Without the card

Blocked

“Use the GitHub CLI to post the screenshot as an inline image in a comment on issue #1, after making the file available through a URL that GitHub can render. GitHub issue comments do not accept local file attachments directly […]”

Full recorded answer

Use the GitHub CLI to post the screenshot as an inline image in a comment on issue #1, after making the file available through a URL that GitHub can render. GitHub issue comments do not accept local file attachments directly, and the supplied information does not establish a supported CLI upload mechanism or provide an image URL. Without that, the screenshot cannot be embedded inline from the CLI.

  • Do not run commands; the request is to propose a next action only.
  • No supported image upload command or hosted image URL was provided.
  • Return the comment URL or the CLI output confirming the comment was created, and verify the image renders inline.

With the card

Proposes a command

“Post the screenshot as an attachment on issue #1.”

gh issue comment 1 --attach artifacts/regression.png
Full recorded answer

Post the screenshot as an attachment on issue #1.

gh issue comment 1 --attach artifacts/regression.png
  • Requires GitHub CLI 2.99.0 and GitHub.com or GitHub Enterprise Cloud.
  • The local file must exist and be an attachable image or video; attachments are limited to 50 files per command.
  • Without alt text, the filename is used. The attachment is appended to the comment body if it is not already referenced there.

Recorded 2026-10-13 with gpt-6-luna, medium reasoning, no browsing or tools: one response each, the second with the card as reference.