manage_file

Manage files (path-addressed, versioned content) within a file type. Actions: create (upload text content), get (metadata), list (by path prefix), move (rename), delete. Binary uploads/downloads use the CLI or REST; this tool handles text content and metadata.

Parameters

NameTypeRequiredDescription
actionenum: create | get | list | move | deleteYes
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
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)
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)
limitnumberNoMax results for list
offsetnumberNoPagination offset for list
manage_file — Rekor