Record screen navigation with configurable FPS
praisonai recipe run ai-screen-recorder \
--input '{"url": "https://example.com", "duration": 10, "fps": 30}' \
--json
import sys
sys.path.insert(0, 'agent_recipes/templates/ai-screen-recorder')
from tools import record_navigation, record_scripted_actions
# Record navigation
result = record_navigation(
url="https://example.com",
duration=10,
output_path="recording.mp4"
)
# Record scripted actions
actions = [
{"action": "click", "selector": "#button"},
{"action": "wait", "duration": 2},
{"action": "scroll", "direction": "down"}
]
scripted = record_scripted_actions(
url="https://example.com",
actions=actions,
output_path="scripted.mp4"
)
{
"type": "object",
"properties": {
"url": {"type": "string"},
"duration": {"type": "integer", "default": 10},
"fps": {"type": "integer", "default": 30},
"actions": {"type": "array"}
}
}
{
"path": "/output/recording.mp4",
"duration": 10,
"fps": 30,
"frames": 300
}
pip install playwright
playwright install chromium
# Also requires ffmpeg
brew install ffmpeg # macOS