---
title: "Takes a screenshot of a web page and uploads it to S3-compatible storage."
method: POST
path: "/takeSnapShot"
---

# Takes a screenshot of a web page and uploads it to S3-compatible storage.

`POST /takeSnapShot`

This function opens a specified web page, captures a screenshot, and uploads it to an S3-compatible storage space. It returns the public URL of the uploaded image. The function is designed for single-use operations, opening and closing its own browser instance for each invocation.

## Request body

- object
  - `body` object — Body of the takeSnapShot sls call
    - `arguments` object, required — Configuration object containing all function parameters.
      - `url` string, required — The URL of the web page to screenshot.
      - `fileName` string, required — The file name for the screenshot in S3.
      - `quality` number — For JPEG screenshots, image quality from 0-100.
      - `encoding` 'base64' | 'binary' — The encoding type for the screenshot.
      - `s3Config` object, required — Configuration for your S3-compatible storage.
        - `bucket` string, required — The name of the S3 bucket.
        - `region` string, required — The region of the S3 bucket.
        - `endpoint` string, required — The endpoint URL for the S3-compatible storage.
        - `credentials` object, required — AWS credentials for accessing the S3 bucket.
          - `accessKeyId` string, required — The access key ID for the AWS account.
          - `secretAccessKey` string, required — The secret access key for the AWS account.
      - `headless` boolean — Determines if the browser should run in headless mode.

## Response `200`

Successful operation

- object
  - `imageUrl` string — The public URL of the uploaded screenshot.

## Other responses

- `400` — Bad request
- `500` — Internal server error
- `503` — Service unavailable

## Changes

- **2025-07-11** `b7199116b192` — 1 warning
  - removed the request property `body/arguments/isLocal`
- **2025-07-10** `d193868de840` — 1 info
  - added the new optional request property `body/arguments/isLocal`

[Change history](https://skmtc.dev/microfox-ai/apis/chrome-browser-use/changes/takeSnapShot/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/chrome-browser-use.md) · [All operations](https://skmtc.dev/microfox-ai/apis/chrome-browser-use/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/chrome-browser-use/revisions/b9d32be518ee/schema)
