@agentdevjs/visual-feature
v0.1.0
Published
Visual understanding feature for AgentDev - provides window capture and vision model analysis
Maintainers
Readme
@agentdevjs/visual-feature
Visual understanding feature for AgentDev - provides window capture and vision model analysis.
Installation
npm install @agentdevjs/visual-featureRequirements
- Python environment with pywin32, psutil, and Pillow
- OpenAI API key for vision model
Python Setup
Using uv (recommended)
uv pip install pywin32 psutil PillowUsing pip
pip install pywin32 psutil PillowUsage
import { VisualFeature } from '@agentdevjs/visual-feature';
// Use default python command
const agent = new Agent({ ... }).use(new VisualFeature());
// Use uv
const agent = new Agent({ ... }).use(new VisualFeature({
pythonPath: 'uv python'
}));
// Use uv run (auto-install dependencies)
const agent = new Agent({ ... }).use(new VisualFeature({
pythonPath: 'uv',
pythonArgs: ['run', '--with', 'pywin32', '--with', 'psutil', '--with', 'Pillow']
}));Features
capture_and_understand_windowtool - Capture window screenshot and analyze with vision modelonCallStarthook - Automatically inject current window state info
License
MIT
