Skip to content

feat: shell_screenshot returns png_url and svg_url#63

Open
fahd04 wants to merge 1 commit intodwmkerr:mainfrom
fahd04:feat/shell-screenshot-return-svg-url
Open

feat: shell_screenshot returns png_url and svg_url#63
fahd04 wants to merge 1 commit intodwmkerr:mainfrom
fahd04:feat/shell-screenshot-return-svg-url

Conversation

@fahd04
Copy link
Contributor

@fahd04 fahd04 commented Feb 19, 2026

Summary

Adds png_url and svg_url to the shell_screenshot tool response, addressing issue #45.

Changes

  • shell_screenshot now returns both URLs in the response:

    {
      "filename": "screenshot.png",
      "download_url": "http://localhost:7498/files/.../screenshot.png",
      "png_url": "http://localhost:7498/files/.../screenshot.png",
      "svg_url": "http://localhost:7498/files/.../screenshot.svg",
      "hint": "Use curl -o <filename> <download_url> to save the file"
    }
  • Keeps download_url (pointing to PNG) for backward compatibility

  • Updated tool description to mention both formats

Additional fix

  • Fixed TypeScript error in buffer-to-svg.ts: showCursor is not in the IModes type definition from @xterm/headless. Added type assertion to unblock local build.

Testing

  • ✅ Build succeeds
  • ✅ Tests pass
  • ✅ Linting passes

Closes #45

Add png_url and svg_url to shell_screenshot response alongside
download_url for backward compatibility. Users can now choose
SVG for scalability or PNG for compatibility.

Also fix TypeScript error in buffer-to-svg.ts (showCursor not
in IModes type) that prevented local build.

Closes dwmkerr#45
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.

feat: shell_screenshot should return all file paths including SVG

1 participant

Comments