manage_file

Manage files (path-addressed, versioned content) within a file type. Actions: create (upload text content, mints a content version), get (metadata; ?version reads a retained one), list (by path prefix), move (rename), delete, history (list content versions), diff (compare two versions — metadata delta + text content diff). Binary uploads/downloads use the CLI or REST; this tool handles text content and metadata.

Parameters

NameTypeRequiredDescription
actionenum: create | get | list | move | delete | history | diffYes
base_idstringYesTarget database ID
file_typestringYesThe file type id
pathstringNoFile path within the file type (e.g. notes/summary.md). Required for create/get/move/delete/history/diff
contentstringNoText content to upload (create). For binary, use the CLI/REST.
content_typestringNoMIME type of the content (create); defaults to text/plain
metadataobjectNoStructured metadata (validated against the file type's metadata_schema)
labelstringNoFree-string tag for the content version this create mints (e.g. 'proposal 1')
if_matchstringNocontent_sha256 compare-and-set: write only if the current content hash matches
new_pathstringNoDestination path for move
prefixstringNoPath prefix filter for list
depthnumberNoMax folder depth below the prefix for list (1 = immediate children)
versionnumberNoRead a specific retained content version (get); defaults to the latest
fromnumberNoBase version number (diff)
tonumberNoTarget version number (diff)
limitnumberNoMax results for list/history
offsetnumberNoPagination offset for list/history
manage_file — Rekor