Prepare Screenshot Upload
prepare_screenshot_uploadGet a curl command for uploading screenshots that request_approval can show on the review screen. Call it once before request_approval when a screenshot helps the user decide, such as test results, a UI change, or an error. Run the returned command from your shell once per PNG, JPEG, or WebP file (2 MB at most), replacing the file path; each run prints a JSON response with a screenshot ID. Pass up to 5 of those IDs in request_approval screenshots. The upload token works for 15 minutes, and an upload not used by an approval within an hour is deleted. Sends nothing to the user's devices.
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": "prepare_screenshot_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_bytes | Yes | ||
| expires_at | Yes | ||
| upload_url | Yes | ||
| curl_command | Yes | ||
| upload_token | Yes | ||
| accepted_content_types | Yes |