takeScreenshot
Capture and return a base64 encoded screenshot of a specified screen ID using this tool. Ideal for web development and AI agent tasks requiring screen visual data.
Instructions
Take a screenshot of a specific screen and return it as a base64 encoded string.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "takeScreenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screenId | No | ID of the screen to capture. Use listScreens to find available screens. Default is 1 (main screen) | |
| timeout | No | Maximum time to wait in milliseconds (default: 0, no timeout) |