Overview
ContextFort automatically captures screenshots of every agent interaction, creating a complete visual audit trail. Screenshots are captured in pairs (before/after) for most actions, providing clear evidence of what the agent saw and what changed.Privacy Notice: Screenshots may contain sensitive information (PII, PHI, financial data). All screenshots are stored locally on your machine and never transmitted externally.
When Screenshots are Captured
Action-Based Triggers
Click Events
Before: Immediate capture when agent clicks
After: 300ms delay to show result
Double Click
Before: Immediate capture
After: 300ms delay
Right Click
Before: Immediate capture
After: 300ms delay
Input Events
Debounced: 1 second after last keystroke
After Only: Shows final input value
Navigation Events
Page Navigation: When agent navigates to a new URL, a “page_read” event is logged but no screenshot is captured (only metadata). This reduces storage usage while maintaining navigation history.
Screenshot Capture Implementation
Click Event Capture
chrome-extension/background.js
- Why 300ms delay?
- What if page takes longer?
Most web interactions complete within 300ms:
- Button clicks trigger immediate UI changes
- Modal dialogs appear instantly
- Form validations show feedback quickly
Input Event Capture (Debounced)
chrome-extension/background.js
Why debounce input events?
Why debounce input events?
Without debouncing, typing “Hello World” would trigger 11 screenshots (one per keystroke). Debouncing ensures only one screenshot is captured after typing is complete.Debounce Timer: 1000ms (1 second)
Additional Delay: 500ms for rendering
Total Delay: 1.5 seconds after last keystroke
Why collect all input values?
Why collect all input values?
The This provides context for debugging agent behavior, showing the agent’s typing process.
inputValues array captures the full typing sequence:Screenshot Data Structure
Full Data Format
Example: Click Event
- Before Screenshot
- After Screenshot
Example: Input Event
Example: Page Navigation
Storage Management
Queued Storage Writes
To prevent storage bottlenecks and race conditions, screenshot writes are queued:chrome-extension/background.js
Retention Policy
Maximum Screenshots
100 screenshots stored at any time
FIFO Queue
Oldest screenshots deleted when limit reached
No Expiration
Screenshots never expire automatically
Manual Deletion
User controls all retention via Dashboard or uninstall
Security & Privacy
What’s in Screenshots
- Sensitive Data
- Storage Security
- User Responsibility
Screenshots may contain:
- PII: Names, email addresses, phone numbers
- PHI: Medical records, health data
- Financial: Credit card numbers, bank balances
- Credentials: Visible passwords, API keys
- Confidential: Trade secrets, internal documents
Data Deletion
1
Delete All Screenshots
Uninstall ContextFort extension:
- Go to
chrome://extensions/ - Find ContextFort
- Click “Remove”
- All local data deleted immediately
2
Clear Storage
Keep extension but clear all data:
3
Delete Specific Screenshots
Currently, you can delete all screenshots via Chrome storage. Individual screenshot deletion via the dashboard is not yet available.To delete all screenshots:
Performance Optimization
Capture Optimization
PNG Format
PNG Format
Screenshots use PNG format for lossless quality:Alternatives considered:
- JPEG: Lossy compression, not suitable for text-heavy screenshots
- WebP: Better compression but lower browser support
Device Pixel Ratio
Device Pixel Ratio
Coordinates are scaled for high-DPI displays:
chrome-extension/content.js
Capture Failures
Capture Failures
If capture fails (tab closed, window minimized), errors are silently ignored:
Viewing Screenshots
Screenshots can be viewed in the Visibility Dashboard:- Click ContextFort icon in Chrome toolbar
- Navigate to “Visibility” page
- Select a session to view all screenshots
- Click screenshot to view full size
- Download individual screenshots or entire session
Open Visibility Dashboard
View all captured screenshots organized by session
Export Screenshots
Export screenshots for offline review or audit:Export Format: Screenshots export as JSON with base64-encoded PNG data URLs. You can extract the data URLs and save as individual PNG files.
Next Steps
Visibility Dashboard
Learn about session tracking and monitoring
Session Isolation
Understand how screenshots relate to session swaps
Blocking Rules
See how blocking events are captured in screenshots
Data Policy
Read the full data policy and security details