Save Screenshot as Run Attachment is a specialized tool that captures the current screen state and saves it as an attachment to your workflow run. Unlike regular screenshots used for navigation, these are specifically preserved as outputs that can be accessed after the workflow completes.
In your prompts, always refer to this tool as save_screenshot_as_run_attachment (lowercase, with underscores).
"After submitting the payment, wait for the confirmation page to load, then use save_screenshot_as_run_attachment to capture the confirmation as 'payment_confirmation_{invoice_number}.png'"
"Navigate to the patient's imaging results. Open the chest X-ray dated {scan_date} and use save_screenshot_as_run_attachment to save it as '{patient_id}_chest_xray_{scan_date}.png'"
"After the analytics dashboard loads with data for {month}, use save_screenshot_as_run_attachment to capture the full dashboard as '{client_name}_analytics_{month}.png'"
"If any error message appears during processing, use save_screenshot_as_run_attachment to capture it as 'error_{timestamp}.png' before attempting to resolve"
"[Navigate to specific screen/state], [wait for specific element if needed], then use save_screenshot_as_run_attachment to capture [what's being captured] as '[descriptive_filename].png'"
"Open patient {patient_name}'s record and navigate to the vitals chart. Ensure the last 30 days of data is visible, then use save_screenshot_as_run_attachment to save the vitals trend as '{patient_id}_vitals_trend_{date}.png'. This screenshot is critical for the physician's review."
"Complete the order for customer {customer_id}. On the order confirmation page, use save_screenshot_as_run_attachment to capture the full page including order number, items, and total as 'order_{order_number}_confirmation.png'"
"After executing the wire transfer of ${amount} to {recipient_bank}, wait for the success screen, then use save_screenshot_as_run_attachment to document the transaction as 'wire_transfer_{transaction_id}.png'. Ensure the reference number is clearly visible."
"For each damage photo in the claim, maximize the image view and use save_screenshot_as_run_attachment to save it as 'claim_{claim_number}_damage_{photo_number}.png'. Capture all 5 required angles."
"First, use focused_action to read the order number from the confirmation screen and save it as {{order_number}}. Then use save_screenshot_as_run_attachment to capture the receipt as 'order_{{order_number}}_receipt.png'"
"For each step of the procedure:1. Screenshot the pre-procedure state as 'procedure_{case_id}_step1_before.png'2. Perform the action3. Screenshot the result as 'procedure_{case_id}_step1_after.png'Use save_screenshot_as_run_attachment for each capture."
"Capture the system status dashboard every 5 minutes during the test. Use save_screenshot_as_run_attachment with names like 'system_status_{test_id}_{capture_time}.png'"
"After clicking 'Generate Report', wait for the loading spinner to disappear and the report to fully render (usually 3-5 seconds), then use save_screenshot_as_run_attachment to save it as 'report_{report_id}.png'"
"Check if the prescription includes controlled substances. If yes, use save_screenshot_as_run_attachment to capture the prescription as 'controlled_rx_{patient_id}_{date}.png' for compliance records."
"The report spans 3 pages. For each page:1. Use save_screenshot_as_run_attachment to save as 'report_{report_id}_page{n}.png'2. Click 'Next Page'Repeat for all pages."
"Scroll to ensure the entire form is visible on screen (all fields from 'Patient Name' to 'Signature' should be in view), then use save_screenshot_as_run_attachment to capture as 'completed_form_{form_id}.png'"
"If a confirmation dialog appears, use save_screenshot_as_run_attachment to capture it as 'confirmation_dialog.png' before clicking OK. Make sure the dialog is centered and fully visible."
"Use focused_action to verify the chart has loaded completely with all data points visible. Once confirmed, use save_screenshot_as_run_attachment to capture the analytics chart as '{metric_name}_trend_{date_range}.png'"
"Generate the PDF report and save to D:\Reports\{report_id}.pdf. Use mark_file_for_export on the PDF file. Also use save_screenshot_as_run_attachment to capture the report summary screen as '{report_id}_summary.png' for quick reference."
"For the audit trail:1. Screenshot the initial state: 'audit_{audit_id}_initial.png'2. Perform the changes as specified3. Screenshot each change confirmation4. Screenshot the final state: 'audit_{audit_id}_final.png'Use save_screenshot_as_run_attachment for all captures."
"During the 10-minute system test, use save_screenshot_as_run_attachment every minute to create a visual log. Name files as 'test_{test_id}_minute_{n}.png' where n goes from 1 to 10."
"Open the previous version in the left panel and current version in the right panel. Use save_screenshot_as_run_attachment to capture the side-by-side comparison as 'document_comparison_{doc_id}_v{old}_vs_v{new}.png'"
"If the workflow encounters any unexpected screens or error messages:1. Use save_screenshot_as_run_attachment to capture as 'unexpected_state_{timestamp}.png'2. Include these screenshots in the error report3. Continue with error recovery stepsThis helps with debugging failed runs."