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.
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) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"screenId": {
"description": "ID of the screen to capture. Use listScreens to find available screens. Default is 1 (main screen)",
"type": "number"
},
"timeout": {
"description": "Maximum time to wait in milliseconds (default: 0, no timeout)",
"type": "number"
}
},
"type": "object"
}