You can now implement agentic video understanding inside your own harness! Expose the new options as arguments in your view_file tool and let the server handle the processing.
@w3stmacc@OfficialLoganK Metadata is baked into what the model sees when it inspects the "slice" eg page counts, sheet names, video length and frame rate, etc.
If an agent is driving the selection of the options via a tool it can "peek" at the first page and get the metadata it needs.
Not to overshadow the Jensen news, but we just shipped Office doc support & a rich set of document and media controls in the Gemini API.
Harness devs can now upload files once, and only pay for the tokens their (obviously Gemini Neon based) agent wants to look at.
New in the Gemini API: Native file slicing controls πβοΈ
Pass dense PDFs, Office & OpenDocument files, audio, and video directly to Gemini 4 models, and slice just the pages, cells, or timestamps you need server-side.
β Upload once via the Files API, slice across turns
β Skim cheap (page_text / transcripts), then zoom in (high res)
β Pay tokens only for the slices Gemini inspects
β Zero local ffmpeg or PDF rendering bloat
Available today via the API in @GoogleAIStudio and Gemini platform across all Gemini 4 models.
π Making agents multimodal just got a lot easier.
π Today weβre launching file slicing controls in the Gemini API. Upload pdfs, docs, sheets, slides, audio, or video onceβthen slice only the pages, cell ranges, or clips your agent needs server-side. You only pay for the file slices that Gemini inspects. Early customer wins:
-@vercel: 14x fewer tokens skimming a page as text vs. rendering the full PDF
-@liteLLM: 67% fewer prompt tokens on PDFs and 33% fewer on workbooks
π§ Blog: https://t.co/FlxeSBk1dK
οΏ½οΏ½πΌ Grateful to work with the best: @mttcnnff, @bcaine, @skprat, @jalayrac, @tulseedoshi, and many others