flask

v1.4.1
io.github.tryflask/flask Checked 4 days ago Published 1 month ago

Video review for agents: upload renders, read time-coded feedback, iterate version by version.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_guide Read a Flask guide

Returns one of Flask's usage guides as Markdown: fixed text written by Flask, the same for every user, with no team data in it. "instructions" (about 17 KB) is the playbook for working with Flask: where uploads go (a new asset or a new version), what an agentic edit attaches, how feedback is read, answered and shown, and how sharing works. Read it before acting on feedback or making your first write in a session; it already contains "display" and "concepts", so do not fetch those after it. Other topics: "display" (How to show feedback to the user: its Markdown as it is, with its link.), "conce…

ParameterTypeDescription
topic *stringThe guide to read; "instructions" is the playbook

contents Browse folders and assets

Browse the team's folders and assets one level at a time. No id: the team's top level (root folders and assets; team names the team). folder_id: that folder's child folders and assets. asset_id: that asset's versions (version_id, version number, title, status, which one is current, and who uploaded it: uploaded_by with user_id and name, plus uploaded_by_agent true and agent_client_id when an agent uploaded it as that person), top first, not paged; filter them on uploaded_by.user_id to find what one person uploaded. Each asset item carries asset_id (the asset), version_id (its current version),…

ParameterTypeDescription
asset_idstringOpen an asset to list its versions (version_id, version number, title, status, which one is current, who uploaded it). Not with folder_id.
folder_idstringFolder to open - omit to see team root
limitnumberPage size (default 20, max 100)
offsetnumberItems to skip for pagination: the next_offset of the previous page
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).

feedback_list List feedback

List top-level feedback on an asset (pass the asset id for its current version, or a version id for that exact version; a folder id is refused - use recent_activity(folder_id)). By default only OPEN feedback (not yet completed) is listed: the feedback that still needs action; counts says how many are open and completed, and status=all lists everything. The response names the version listed: version_id, container_id, title and version number. Each item has its text body, tags (by name), status (open, in-progress or completed: set by the team's status labels, Done is completed), author, timestam…

ParameterTypeDescription
asset_id *stringAsset id (its current version) or version id to list feedback for
limitnumberPage size (default 20, max 100)
offsetnumberItems to skip for pagination
statusstringopen (default): not completed yet, in-progress included. completed: marked Done (or another completed label). all: everything.

feedback_get Get feedback

Get a single feedback item with its full reply thread. element_id is the item's id, as feedback_list, recent_activity, search or wait_for_feedback return it. Use it when an item has replies (feedback_list gives reply_count, not the replies) or to read one item again; to list an asset's feedback use feedback_list. Returns the item's text body (for recordings: the AI-organized feedback), tags (by name), author, posted_by_agent, video timestamp (and end_timestamp for a range), the recording (recording_type voice, camera or screen; its full verbatim transcript; pipeline_status - the transcript is…

ParameterTypeDescription
element_id *stringFeedback item ID to retrieve: the id field of an item from feedback_list, recent_activity, search or wait_for_feedback

wait_for_feedback Wait for feedback

Wait for NEW feedback on an asset (comments and replies by others; your own posts are not returned). Blocks up to timeout_seconds (default 45) and returns as soon as new feedback arrives, or times out with an empty list. A recording arrives once its transcript is done; recordings still being made or transcribed are listed in pending (read them later with feedback_get, or keep waiting - they are delivered when done, and feedback newer than them is delivered after them, in order). To listen continuously, call it again with the returned next_since. Use this after uploading a video for review inst…

ParameterTypeDescription
asset_id *stringAsset id (its current version) or version id to watch for new feedback
sincestringISO timestamp - only feedback created after this is returned. Omit on the first call (defaults to now, i.e. waits for the NEXT feedback). On subsequent calls pass the next_since from the previous resp…
timeout_secondsnumberHow long to wait before returning empty (10-45, default 45)

feedback_post Post feedback

Create a feedback comment on an asset, as the connected user. Pass an asset id (the comment lands on its current version) or a version id (that exact version). content is Markdown (a heading, lists, bold, links, @mentions as links - see the content parameter). PREFER passing timestamp (seconds into the video) whenever the source material has one - e.g. when importing feedback from an email like 'at 0:42 the logo is wrong', convert 0:42 to 42 - and end_timestamp too when the comment is about a span (0:42-0:50). The comment is anchored there, so do not repeat that time in content. Without timest…

ParameterTypeDescription
asset_id *stringAsset id (current version) or version id to comment on (with reply_to: the asset the thread is on)
content *stringThe comment body in Markdown. Supported: headings (one level - any number of # makes the same heading), bulleted and numbered lists, **bold**, *italic*, `code`, fenced code blocks, links; a single new…
end_timestampnumberEnd of the range in SECONDS, when the comment is about a span of the video rather than one moment (a scene, a section, an ad read): the comment is anchored to timestamp-end_timestamp. Omit for a singl…
reply_tostringFeedback item id to reply to (threads the comment under it; a reply to a reply joins the same thread)
tagsarrayTag NAMES to apply (must already exist in the team - see the tags tool). Only for members of the asset's team. Not allowed with reply_to.
timestampnumberVideo time in SECONDS the comment refers to (e.g. 72.5 for 1:12.5) - the start of the range when end_timestamp is given. Strongly preferred when known; omit for a general comment. Not allowed with rep…

feedback_update Update feedback

Edit an existing feedback item. content (Markdown - replaces the whole body; start from the item's current content to keep its mentions and formatting) and timestamp (video time in seconds; with end_timestamp, a range - the two replace the comment's anchor together) can only be changed on the connected user's OWN comments. add_tags / remove_tags apply the team's existing tags by NAME and work on ANY feedback item in your own team's assets (labels and statuses are collaborative - e.g. add the 'Done' tag to mark feedback resolved; people outside the asset's team can comment but not change tags),…

ParameterTypeDescription
element_id *stringFeedback item to edit
add_tagsarrayTag NAMES to add (must already exist in the team)
contentstringNew comment body in Markdown (fully replaces the existing body; own comments only). Same syntax as feedback_post content.
end_timestampnumberEnd of the range in SECONDS, when the comment is about a span of the video rather than one moment (a scene, a section, an ad read): the comment is anchored to timestamp-end_timestamp. Omit for a singl…
remove_tagsarrayTag NAMES to remove
timestampnumberNew Video time in SECONDS the comment refers to (e.g. 72.5 for 1:12.5) - the start of the range when end_timestamp is given. Own comments only.

get_annotated_frames Get annotated frames

The visuals of a feedback item, in one call: call it before acting on any item with a visuals field (a recording, a drawing, images). element_id is that item's id, as feedback_list, feedback_get, recent_activity, search or wait_for_feedback return it. For a recording: a frame for EVERY pointing link in its content ([phrase](#rt=S), the reviewer's "this" / "here"), each labelled with the links it shows, the media under review with the reviewer's drawing rendered in, and their shared SCREEN when they demonstrated something (e.g. a Photoshop/Figma mockup); webcam frames are NOT included, and the…

ParameterTypeDescription
element_id *stringThe feedback item (element) to get annotated frames for: the id field of an item from feedback_list, feedback_get, recent_activity, search or wait_for_feedback

get_frame Get frame

Fallback for ONE moment get_annotated_frames did not show: the exact frame at a recording time (at) or when a word/phrase was spoken (word). get_annotated_frames already shows every [phrase](#rt=S) link in a comment - call it first; use this for a moment the comment doesn't link (something the transcript mentions) or a link it named as not shown. Returns the asset frame at that moment (plus the active shared screen, if any) and a transcript snippet around it. Each frame comes with a Link to it as shown (drawing included) and, when different, Media only (the same moment without the drawing or p…

ParameterTypeDescription
element_id *stringThe recording feedback item (element) to drill into
atnumberrecording time in seconds (a moment the transcript mentions, or a link get_annotated_frames named as not shown)
sourcestringlimit to the asset frame or the shared-screen frame
wordstringa word or short phrase the reviewer spoke

asset_status Check processing status

Check whether an uploaded or imported video is ready. Pass the version id an upload returned (its asset_id) or an asset id (resolves to its current version); a folder id is refused. status is one of: ready; pending_ingest, processing, preparing or waiting (still working - check again in a few seconds; transfer_progress shows an import's download progress, progress the video processing percent); error (terminal - read error_message, stop polling and upload the file again); no_versions (the asset has no media yet). Returns asset_id (the asset), version_id (the version checked), url (current vers…

ParameterTypeDescription
asset_id *stringVersion id (from an upload) or asset id to check

version_download Download a version's file

Get a download link for a version's file, to work on it locally. Pass a version id (an upload's asset_id / version_id) or an asset id (its current version); a folder id is refused. A video gives its ORIGINAL uploaded file, exactly as uploaded: Flask keeps it for the team's download window, 14 days from upload on Free and Pro (as long as the team chooses on the Team plan); available_until says until when, after which it is gone for good and this says it expired (the video still plays in Flask). An image gives its stored file, kept for good. Download with curl -fsSL -o <filename> '<download_url>…

ParameterTypeDescription
asset_id *stringVersion id (from an upload or contents) or asset id (its current version)

permission_get Get access settings

Read the access settings of a folder or an asset. Returns: your own access level (full_access, comment_and_notes, comment, view or none), whether you can read version notes (can_view_notes) and version files (can_view_code), always together: the team, or a link with Can View Code and Context, and download originals (can_download: the team, or the link unless Can Download is turned off) and whether you are its creator / a member of its team, the creator (name, avatar), the default levels for members and for anyone with the link, and the team's member count. It does NOT list individual people -…

ParameterTypeDescription
asset_idstringAsset (or version) to check
folder_idstringFolder to check (or pass asset_id)

recent_activity Get recent team feedback

Get the latest feedback across the whole team or one folder's subtree (team names the team), newest first: text and recording comments on every asset you can view, so you can read feedback across many videos in one call. Each item has a `type` field ("text" or "recording"), author, timestamp, a link that opens the comment, the asset it belongs to (container_id / container_title) and the version it was left on (asset_id = version id, version number). Scope with folder_id to read one client's/project's feedback, narrow the window with since/until, and page with offset = the previous next_offset:…

ParameterTypeDescription
folder_idstringOnly feedback on assets inside this folder's subtree
limitnumberNumber of comments to return (default 20, max 100)
offsetnumberItems to skip for pagination (use next_offset from the previous response)
sincestringOnly feedback created at/after this ISO timestamp
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).
untilstringOnly feedback created at/before this ISO timestamp

tags List tags and usage

List the team's tags and show the share of each tag (plus an 'untagged' bucket) across a scope. Scope defaults to the whole team; pass folder_id to narrow to one folder (its whole subtree), or asset_id to narrow to one asset (an asset id counts feedback across ALL its versions; a version id widens to its asset). Shares are count_with_tag / total_elements and do NOT sum to 100% because elements can carry multiple tags.

ParameterTypeDescription
asset_idstringNarrow to this asset (mutually exclusive with folder_id)
folder_idstringNarrow to this folder (mutually exclusive with asset_id)
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).

tag_create Create a team tag

Create a team tag (label) so feedback can be tagged with it by name in feedback_post and feedback_update. Reuse the team's labels when one fits; create one only when the user wants a new label. Idempotent: if a tag with the same name exists (case-insensitive), it is returned unchanged with created: false. Tags are shared by the whole team; call tags() first to reuse an existing one. Pass color when the user names one; without it a color is picked for the tag.

ParameterTypeDescription
name *stringTag name (1-50 characters)
colorstringTag color; omit it and one is picked
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).

members List members

List the people on the team: user_id, name, role (admin or member), avatar_url and a ready-made mention link; the result's team field names the team. Email addresses are never returned. Use it to mention someone in feedback_post / feedback_update content: [@Name](https://flask.do/members?user=USER_ID) notifies that person. query keeps names containing it; no match gives an empty list. It lists the whole team, not who can open an item: for an item's access settings, use permission_get.

ParameterTypeDescription
querystringCase-insensitive name filter (part of a name matches)
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).

upload_video Upload video from URL

Upload a video from a public URL (a direct video file link or a Google Drive share link) into Flask. Flask downloads it, stores it, and starts processing. Creates a new asset (container_id + url) with the file as its first version (asset_id / version_id), or a new version of an existing asset with version_of. Share the returned asset URL while processing; poll asset_status(version_id) until status is "ready" before reporting processing complete. folder_id is OPTIONAL: omit it to upload to the team's top level (root). On the free plan new assets are limited per month (web and agents together) a…

ParameterTypeDescription
video_url *stringPublic URL of the video to import - a direct video file URL or a Google Drive share link
filesarrayThe version's working files, sent with the upload: ONE zip of the project folder that made it (without node_modules, build output or renders), up to 500 MB, set once. It comes back with its upload com…
folder_idstringOptional folder to upload into (you must have edit access - check with permission_get if unsure). Omit to upload to the team's top level (root).
notesstringThe version's notes, in Markdown: what changed and why (link the feedback it answers), and how to continue (the tools, the command that renders it). Start straight with that: no title or heading on to…
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).
titlestringTitle for the new asset (defaults to "Video from URL")
version_ofstringUpload as a NEW VERSION of an existing asset instead of creating a separate asset. Accepts the id of the asset (its container id, what contents/search return), or of any of its versions. The new uploa…

upload_file_start Start local file upload

Start uploading a LOCAL video or image file from the user's machine into Flask. It needs a shell that can run curl; without one (a chat app), upload from a public link with upload_video. VIDEO: creates the asset immediately (container_id + shareable url, live before any bytes move) with the file as its version (asset_id / version_id), or a new version of an existing asset with version_of, and returns the shell command (next_step) that sends it while the user watches its progress at the url; then call upload_file_complete(asset_id). IMAGE (content_type image/png, image/jpeg, image/webp or image…

ParameterTypeDescription
file_size *integerExact size of the local file in bytes (e.g. from `stat -f%z <file>` on macOS or `stat -c%s <file>` on Linux)
content_typestringMIME type of the file (defaults to video/mp4). image/png, image/jpeg, image/webp or image/gif uploads an image.
filesarrayVideo only (an image: pass them to upload_file_complete). The version's working files, sent with the upload: ONE zip of the project folder that made it (without node_modules, build output or renders),…
folder_idstringOptional folder to upload into (you must have edit access - check with permission_get if unsure). Omit to upload to the team's top level (root). For an image, pass it to upload_file_complete instead.
notesstringVideo only (an image: pass it to upload_file_complete, where its version is made). The version's notes, in Markdown: what changed and why (link the feedback it answers), and how to continue (the tools…
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).
titlestringTitle for the new asset (defaults to "Untitled Video"). For an image, pass it to upload_file_complete instead.
version_ofstringUpload as a NEW VERSION of an existing asset instead of creating a separate asset. Accepts the id of the asset (its container id, what contents/search return), or of any of its versions. The new uploa…

upload_file_complete Finish local file upload

Finalize a local file upload started with upload_file_start. Call this only AFTER the upload command (or, for an image, the curl PUT) has finished successfully. Pass exactly one of: asset_id (a video: verifies every part landed in storage and starts video processing) or image_url (an image). An image creates the asset here - at the team's top level, in folder_id, or as a new version of version_of - titled title. Safe to retry: a repeat returns the same asset.

ParameterTypeDescription
asset_idstringThe asset_id (version id) upload_file_start returned for a video
filesarrayImage only (a video's go with upload_file_start). The version's working files, sent with the upload: ONE zip of the project folder that made it (without node_modules, build output or renders), up to 5…
folder_idstringImage only: folder to create it in (omit for the team's top level)
image_urlstringThe image_url upload_file_start returned for an image
notesstringImage only (a video's go with upload_file_start). The version's notes, in Markdown: what changed and why (link the feedback it answers), and how to continue (the tools, the command that renders it). S…
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).
titlestringImage only: title for the new asset (defaults to the file name for an image)
version_ofstringImage only: add it as a new version of this asset (any of its ids). For a video it is ignored: the version is attached at upload_file_start.

feedback_stats Get feedback statistics

Aggregate feedback statistics across many assets in ONE call - counts per asset and per version (v1, v2, ...), split by type (text/recording), tag, and author, with first/last feedback timestamps. Scope to a folder (folder_id), one asset (asset_id - an asset id or any of its version ids; the whole asset is reported, version by version), or the whole team; narrow the time window with from/to. Items are sorted by feedback count, most first; assets with no feedback in the window are left out unless include_empty is true. Paged: limit (default 50, max 200) and offset; total is the number of items,…

ParameterTypeDescription
asset_idstringScope to one asset or version stack (mutually exclusive with folder_id)
folder_idstringScope to this folder's subtree (mutually exclusive with asset_id)
fromstringOnly count feedback created at/after this ISO timestamp
include_emptybooleanAlso list assets with no feedback in the window (default false)
limitintegerItems per page (default 50, max 200)
offsetintegerItems to skip (use next_offset from the previous response)
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).
tostringOnly count feedback created at/before this ISO timestamp

folder_create Create a folder

Create a folder. parent_folder_id is optional: omit it for the team's top level (root), or pass a folder id from contents or search to nest it. Folders are optional and nestable; assets can also sit at root. This does not check for an existing folder with the same name (the app allows duplicates): call contents first if it may already exist. Returns folder_id and its url. To put assets in it, use items_update with folder_id, or pass folder_id to the upload tools. Needs edit access on the parent folder. Additive: nothing existing changes.

ParameterTypeDescription
title *stringFolder name (1-255 characters)
parent_folder_idstringFolder to create it in, or "root" (the default) for the team's top level
team_idstringTeam to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time).

items_update Rename, move or share folders and assets

Rename, move and/or change the sharing of folders and assets, up to 20 items per call, each with its own result. Per item: id (a folder id, an asset id, or a version id) plus at least one of: title (renames the folder, or the asset; a version id renames its asset), version_title (names that one version, as in the app's version list; version ids only), folder_id (move into this folder, or "root" for the team's top level; a version id moves its whole asset), link_access (what anyone with the item's link can do: comment, view, or none to close the link; comment_and_notes is the same as comment fo…

ParameterTypeDescription
items *array1-20 items to change

versions_add Add assets or versions to an asset

Make other assets or versions the NEWEST versions of asset_id (the asset that keeps its title, link and sharing), as dragging one onto another does in the Flask app. Use it when a revision was uploaded as a separate asset. A source asset id brings ALL its versions, and that source asset then stops existing: its title and link go, and its versions take asset_id's sharing. A version id moves just that version (if it was its asset's only version, that asset goes the same way). Sources are added in order; the last becomes the current version. Refused when a source is still uploading, is in another…

ParameterTypeDescription
asset_id *stringThe asset that receives the versions (any of its ids)
source_ids *arrayAsset or version ids to add, in order; the last becomes current

versions_split Split versions into their own assets

Move each version in version_ids out of its asset into a new asset of its own, in the same folder, named after the version, with the same sharing. An asset always keeps at least one version; a version that is already alone is reported already_separate. Undo it with versions_add. No media or feedback is ever deleted; feedback stays on its version. contents(asset_id) lists an asset's versions. Results are per version; earlier ones are not undone if a later one fails.

ParameterTypeDescription
version_ids *arrayVersion ids to split out

versions_reorder Reorder an asset's versions

Set the order of an asset's versions: order lists every version id of asset_id exactly once, top first. The top version becomes the current one (what the asset link opens), and version numbers follow the order. Reorder again to undo. No media or feedback is ever deleted; feedback stays on its version. contents(asset_id) lists an asset's versions.

ParameterTypeDescription
asset_id *stringThe asset (any of its ids)
order *arrayEvery version id of the asset, top first

version_notes_get Read a version's notes and files

Read a version's notes (Markdown) and its files. Notes say what changed in that version and how to continue the work; its files are what made it: ONE zip of the working files, downloaded as <version_id>.zip. Call this before continuing work someone else uploaded: read the current version's notes, download its files, then make the changes the feedback asks for. Each file has name, size and download_url (works without a token for one hour): download with curl -fsSL -o <name> '<download_url>' and unzip it. With include_contents, the zip also lists what it holds (path and size of every file), to c…

ParameterTypeDescription
asset_id *stringThe version (an upload's asset_id / version_id), or an asset id (its current version)
include_contentsbooleanAlso list what the zip holds (path and size of every file in it)

version_notes_update Write a version's notes

Replace a version's notes with Markdown (the whole text; null or empty clears them). For a NEW upload, pass notes with the upload call instead (upload_file_start, upload_file_complete, upload_video): the version then shows them from the start. Write notes on every revision you upload, so any agent can continue from the Flask link alone: what changed and why (which feedback it answers) and how to continue (the tool and versions used, the commands to render). Start straight with that: no title or heading on top (Flask already shows the asset's name and the version number above them), and no file…

ParameterTypeDescription
asset_id *stringThe version (an upload's asset_id / version_id), or an asset id (its current version)
markdown *The notes, in Markdown; null clears them

version_file_upload Add a file to a version

Attach a version's working files to a version that already exists (for a NEW upload, pass files with the upload call instead: the version then shows them from the start): ONE zip of the project folder that made it (without node_modules, build output or renders), up to 500 MB. Returns a presigned upload URL for exactly file_size bytes; upload with the curl command from next_step (this needs a shell that can run curl). The zip belongs to the version as soon as the bytes land (no complete call); people see what it holds in the version's Code and Files and download it as <version_id>.zip. A versio…

ParameterTypeDescription
asset_id *stringThe version (an upload's asset_id / version_id), or an asset id (its current version)
file_size *integerExact size of the local file in bytes (stat -f%z <file> on macOS, stat -c%s <file> on Linux)
name *stringThe zip's file name, e.g. source.zip (it must be a .zip)