Get workflow head files
Get the editable head rendered as a directory of files. Structural files carry inline content; user agent files are referenced by id. The returned rev can be supplied as baseRev to patch without a second fetch.
Request
- Base URLhttps://odyssey.asteroid.ai
- URLhttps://odyssey.asteroid.ai/agents/v2/agents/{agentId}/workflow-head/files
- AuthAPI key in header X-Api-Key
Path parameters
Query parameters
Which file contents a tree read carries inline.
Which contents come inline: none (a pure manifest), structural (the default), or all (structural plus agent-file bytes within the response budget).
Return only the files at these exact tree paths. A path that names nothing yields no entry. The inline budget applies to the filtered set, so a narrow read can inline files a whole-tree read would have to skip.
Narrow which variants/<key>/ files the tree carries: "none" strips every variant, a comma-separated list keeps only those variant keys. Files outside variants/ are always kept, and the response's variantKeys still names every variant. Ignored unless the workflow has variant mode enabled; absent keeps every variant.
Per-file ceiling, in bytes, for inlined agent-file contents. Clamped to the server maximum; a caller with tighter limits of its own passes them here so the response does not carry bytes it will discard. Files above the ceiling stay references.
Ceiling, in bytes, on the total inlined agent-file contents in one response. Clamped to the server maximum. Files are admitted in path order until the ceiling is reached; the rest stay references.
Response
The request has succeeded.
Changes
No recorded changes to this operation across all 1 revision of this API.