Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.smooth.sh/llms.txt

Use this file to discover all available pages before exploring further.

The Screenshot tool allows the agent to take screenshots of the browser viewport. The captured screenshots can be accessed via .downloads_url() after the task completes.

Usage

from smooth import SmoothClient

client = SmoothClient()

task = client.run(
    task="Go to example.com and take a screenshot",
    additional_tools={
        "screenshot": {"full_page": True}
    }
)

result = task.result()
print(f"Download screenshots: {task.downloads_url()}")

Parameters

full_page
boolean
Whether to capture the entire scrollable page rather than just the visible viewport. Default: False.

Examples

Viewport screenshot (default):
task = client.run(
    task="Take a screenshot of the visible area",
    additional_tools={
        "screenshot": None  # Uses default settings
    }
)
Full page screenshot:
task = client.run(
    task="Go to the url and take a full page screenshot",
    url="https://smooth.sh",
    additional_tools={
        "screenshot": {"full_page": True}
    }
)