tabs_capture_screenshot
Capture a screenshot of the visible Firefox tab or a specified tab, returning it as a base64 data URL or saving it to disk by filename. Requires a profile ID from profiles_list.
Instructions
Capture a screenshot of the visible tab, or of the tab given by tab_id
What comes back depends on whether you pass a filename: with one, the image is written to disk and you get a success message and the path; without one, you get the image inline as a base64 data URL, which for a full window is large.
profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Image format ('png' or 'jpeg', default: 'png') | png |
| tab_id | No | Capture this tab, even in the background (not with window_id) | |
| quality | No | Image quality for JPEG format (1-100, default: 90) | |
| filename | No | Name of the file to save the screenshot (optional, if not provided returns base64) | |
| window_id | No | ID of the window to capture (optional, defaults to current window) | |
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |