Media Studio
Apps & Automationmedia-studioMedia Studio is an Agent Skill for apps & automation published in the nirholas/XActions repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Navigate and automate X Media Studio — upload media, manage your media library, view media analytics, configure monetization, and add video captions. Use when users want to manage their uploaded media or access creator video tools on X.
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/nirholas/XActions/blob/HEAD/skills/media-studio/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/media-studio, 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.
Media Studio
Browser console scripts for X's Media Studio (studio.x.com).
Script Selection
| Goal | File | Navigate to |
|---|---|---|
| Navigate to Media Studio, upload, manage library | src/mediaStudio.js | x.com or studio.x.com |
| Add or manage video captions | src/videoCaptions.js | studio.x.com or tweet with video |
Quick Start
- Go to
x.comorstudio.x.com - Open DevTools (F12) → Console
- Paste
src/mediaStudio.js→ Enter
mediaStudio.js — Available Functions
XActions.mediaStudio.navigate() // Navigate to studio.x.com
XActions.mediaStudio.listMedia() // List all uploaded media (up to maxMediaToScan)
XActions.mediaStudio.uploadMedia(file) // Upload a media file
XActions.mediaStudio.viewAnalytics() // View media analytics (views, engagement)
XActions.mediaStudio.monetizationSettings() // Open monetization config
XActions.mediaStudio.liveStream() // Open live streaming management
videoCaptions.js — Available Functions
XActions.captions.addToCurrentVideo() // Add captions to video on current page
XActions.captions.upload('file.srt') // Upload an SRT caption file
XActions.captions.generate() // Trigger auto-caption generation (Premium)
XActions.captions.download() // Download existing captions
XActions.captions.remove() // Remove captions from a video
Configuration (mediaStudio.js)
const CONFIG = {
delayBetweenActions: 2000, // ms between UI actions
scrollDelay: 2000, // ms between scroll actions
maxMediaToScan: 100, // Max items to load in library
maxRetries: 5, // Retries on selector miss
};
Notes
- Media Studio requires X Premium / Creator subscription for some features
- Auto-caption generation is a Premium feature
- Manual SRT upload is available to all users on tweet pages
- Analytics in Media Studio are more detailed than tweet-level analytics
Related Skills
- video-downloading — Download videos from tweets
- content-posting — Post tweets with media attachments
- creator-monetization — Monetize your content and videos
- analytics-insights — Analyze tweet and content performance