Screen Capture API
Developmentscreen-capture-apiScreen Capture API is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Cross-platform screen and window capture for screenshots and recording
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/desktop-development/skills/screen-capture-api/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/screen-capture-api, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
screen-capture-api
Implement cross-platform screen and window capture for screenshots and recording capabilities.
Capabilities
- Capture full screen
- Capture specific windows
- Capture screen regions
- Handle multiple displays
- Stream screen content
- Handle permissions
Input Schema
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"framework": { "enum": ["electron", "native"] },
"captureTypes": { "type": "array" }
},
"required": ["projectPath"]
}
Electron Example
const { desktopCapturer } = require('electron');
async function captureScreen() {
const sources = await desktopCapturer.getSources({
types: ['screen'],
thumbnailSize: { width: 1920, height: 1080 }
});
for (const source of sources) {
const screenshot = source.thumbnail.toPNG();
// Save or use screenshot
}
}
Related Skills
power-management-monitorsystem-services-integrationprocess