Create Instagram reel
Input
caption optionalReel caption; empty for none. Max 2200 chars.
Default: ""video_url optionalDirect URL of the mp4 to post as a reel, fetched by the browser itself (so it works on devices with no outbound network of their own). Capped at 25MB. THIS IS ALSO HOW TO POST A LOCAL FILE on an extension-paired device: serve it over localhost and pass that URL — `python3 -m http.server 8765 --bind 127.0.0.1` in the file's directory, then video_url=http://127.0.0.1:8765/clip.mp4. Verified: a 2.8MB local mp4 published that way on a device where video_path is refused.
video_path optionalPath to a local mp4, attached straight from disk via CDP — nothing encoded, no size ceiling. Resolved on the machine RUNNING THE BROWSER, and only works on a device whose browser PERMITS DOM.setFileInputFiles. An extension-paired browser does NOT: it refuses with "Not allowed", and no route attaches a local file directly there (builtins.uploadFile with a format:file input is the same CDP call underneath). Prefer the localhost recipe on video_url, which needs no special device. Absolute paths only. Takes precedence over video_url.
Output
url requiredshared requiredpk optionalcode optionalcaption optionalvideo_bytes optionalSize in bytes of the video injected into the composer. null for video_path, where the browser opens the file itself and the bytes never cross the driver boundary.
