Skip to content

bug(screenshot): monitor parameter ignored — all monitors return primary display #1

@Mnehmos

Description

@Mnehmos

Bug

The screenshot tool's monitor parameter is ignored. Requesting screenshots from monitors 0, 1, and 2 all return the identical image (the primary display).

Reproduction

screenshot({ monitor: 0 }) → primary monitor image
screenshot({ monitor: 1 }) → same primary monitor image
screenshot({ monitor: 2 }) → same primary monitor image

Environment

  • 3-monitor setup:
    • DISPLAY1: 1080x1920 portrait at (-2160, -833)
    • DISPLAY2: 1920x1080 landscape primary at (0, 0)
    • DISPLAY3: 1080x1920 portrait at (-1080, -833)
  • Platform: win32

Expected

Each monitor index should capture the corresponding display. The display info from get_screen_info correctly reports all 3 monitors, so the issue is in the screenshot capture logic.

Workaround

Use the region parameter with absolute coordinates from get_screen_info to capture specific monitors manually:

screenshot({ region: { x: -2160, y: -833, width: 1080, height: 1920 } }) // DISPLAY1

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions