Skip to content

capture_screenshot

FreeRuns at once; you can set it to Ask first

Same action in the terminal: capturemann capture screenshot

Take a screenshot of a display, a window, or a region of a display and store it in the library.

  • Tier: Free, changes something: runs at once; the user can set it to Ask first. Confirm when mode is "long" and scroll is "auto" (the default): the screen moves; scroll "hand" is refused for agents.
  • Read-only: no
  • CLI: capturemann capture screenshot
  • Preview parameter: mode (Long Shot) is a Preview feature inside this tool.
  • Spec: CAP-1, CAP-4, CAP-5
NameTypeRequiredDefaultDescription
targetobject {display_id} or object {window_id} or object {display_id, rect} or object {pick}yes
delay_snumbernoSeconds to wait first. (min 0, max 30)
mode"long"no(preview) Long Shot (CAP-6): a scrolling capture of the target as one tall image. The target is a window, a display or a region.
directionvertical | horizontalno"vertical"Long Shot only.
max_pxintegernoLong Shot only: stop at this length. (min 1, max 16384)
scrollauto | handno"auto"Long Shot only.
copy_to_clipboardbooleannofalse
titlestringnoLibrary title; defaults to Screenshot <date> <time>.
presetstringno(preview) Quick Capture preset: the name or id of a screenshot preset from list_presets. It fills delay_s, copy_to_clipboard and mode: "long" (for a Long Shot preset) when the call leaves them out; an argument in the same call wins. A preset holds no area, so target is still required. An unknown name fails with invalid_input naming it.
request_idstringnoIdempotency key; a repeat within 24 h returns the first result. (min length 1, max length 256)

Returns: capture_id, path, kind, width, height, copied_to_clipboard, warnings, image, source, long_shot.

Errors: user_declined, confirmation_timeout, not_implemented, permission_missing (plus the common errors above).

JSON
{"name": "capture_screenshot", "arguments": {"target": {"display_id": 1}, "copy_to_clipboard": false}}