BURROW // API

Files operations

Commands and contracts for files. Place global flags before the command. Examples use placeholders and do not grant approval.

OperationAvailabilityPurpose
files.cancelsupportedCancel pending file discovery
files.cdsupportedValidate and resolve remote navigation
files.completesupportedRead contextual remote path completion
files.historysupportedRead file command history
files.listsupportedList remote files including hidden entries
files.local-cdsupportedValidate navigation within a local root
files.local-listsupportedList contained local files
files.pwdsupportedResolve a remote directory
files.rootssupportedInspect effective transfer roots
files.set-rootsupportedPersist a workspace transfer root
files.treesupportedRead a bounded remote directory tree

files.cancel

Cancel pending file discovery

supported

Invocation

burrow --workspace PATH scp NAME cancel ID

Example

burrow --workspace /absolute/workspace scp target cancel request-1

Parameters

name · string
Workspace-local connection/profile name, 1–24 ASCII letters, digits, underscores or hyphens. Must start with a letter or digit; no paths.
request-id · string
Optional --request ID for discovery; required positional ID for cancel. Choose a fresh non-secret ID per request. Scoped to the selected connection creation. Cancellation is remembered for one minute and affects no transfers.

Pattern: ^[A-Za-z0-9_-]{1,64}$

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Requests cancellation for the exact connection and caller-chosen discovery ID; does not cancel transfers. Cancellation requested is not cleanup acknowledgement. A cancelled ID remains refused for one minute; use a fresh ID for each new request. TUI Ctrl+C uses the same owner contract.

Returns

FileListing. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: scp NAME cancel ID
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/remote_files.go
semantic-check: core/cmd/burrow/files_lab.py

Evidence limits · JSON inventory

files.cd

Validate and resolve remote navigation

supported

Invocation

burrow --workspace PATH scp NAME cd [PATH] [--request ID]

Example

burrow --workspace /absolute/workspace scp target cd /tmp

Parameters

name · string
Workspace-local connection/profile name, 1–24 ASCII letters, digits, underscores or hyphens. Must start with a letter or digit; no paths.
remote-path · string
Remote SFTP path; CLI never retains a working directory between invocations; TUI does.

Default: "."

request-id · string
Optional --request ID for discovery; required positional ID for cancel. Choose a fresh non-secret ID per request. Scoped to the selected connection creation. Cancellation is remembered for one minute and affects no transfers.

Pattern: ^[A-Za-z0-9_-]{1,64}$

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

CLI returns the resolved directory; pass it on subsequent calls. TUI changes its file-tab directory.

Returns

FileListing. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: scp NAME cd [PATH]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/remote_files.go
semantic-check: core/cmd/burrow/files_lab.py

Evidence limits · JSON inventory

files.complete

Read contextual remote path completion

supported

Invocation

burrow --workspace PATH scp NAME complete [PATH] [--request ID]

Example

burrow --workspace /absolute/workspace scp target complete /tmp/

Parameters

name · string
Workspace-local connection/profile name, 1–24 ASCII letters, digits, underscores or hyphens. Must start with a letter or digit; no paths.
remote-path · string
Remote SFTP path; CLI never retains a working directory between invocations; TUI does.

Default: "."

request-id · string
Optional --request ID for discovery; required positional ID for cancel. Choose a fresh non-secret ID per request. Scoped to the selected connection creation. Cancellation is remembered for one minute and affects no transfers.

Pattern: ^[A-Za-z0-9_-]{1,64}$

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Uses bounded cached SFTP discovery; completion is not command history.

Returns

FileListing. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: scp NAME complete [PATH]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/remote_files.go
semantic-check: core/cmd/burrow/files_lab.py

Evidence limits · JSON inventory

files.history

Read file command history

supported

Invocation

burrow --workspace PATH files-history

Example

burrow --workspace /absolute/workspace files-history

Parameters

No operation-specific parameters.

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Inspects existing state; requires a verified running workspace. Operational audit/history may be appended; does not initialize a workspace or connect.

Returns

Strings. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: files-history
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/files.go
semantic-check: core/cmd/burrow/files_check.py

Evidence limits · JSON inventory

files.list

List remote files including hidden entries

supported

Invocation

burrow --workspace PATH scp NAME ls [PATH] [--request ID]

Example

burrow --workspace /absolute/workspace scp target ls

Parameters

name · string
Workspace-local connection/profile name, 1–24 ASCII letters, digits, underscores or hyphens. Must start with a letter or digit; no paths.
remote-path · string
Remote SFTP path; CLI never retains a working directory between invocations; TUI does.

Default: "."

request-id · string
Optional --request ID for discovery; required positional ID for cancel. Choose a fresh non-secret ID per request. Scoped to the selected connection creation. Cancellation is remembered for one minute and affects no transfers.

Pattern: ^[A-Za-z0-9_-]{1,64}$

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Reads remote SFTP metadata; records history. Links are shown, with numeric UID/GID fallback.

Returns

FileListing. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: scp NAME ls [PATH]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/remote_files.go
semantic-check: core/cmd/burrow/files_lab.py

Evidence limits · JSON inventory

files.local-cd

Validate navigation within a local root

supported

Invocation

burrow --workspace PATH lcd [download|upload] PATH

Example

burrow --workspace /absolute/workspace lcd download .

Parameters

area · "download" | "upload"

Default: "download" · Allowed: download, upload

local-path · string
Contained within the selected root; absolute contained paths accepted. lcd requires a path.

Default: "."

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Inspects containment and accessibility; records history. CLI navigation is stateless.

Returns

FileListing. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: lcd [download|upload] PATH
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/files.go
semantic-check: core/cmd/burrow/files_check.py

Evidence limits · JSON inventory

files.local-list

List contained local files

supported

Invocation

burrow --workspace PATH lls [download|upload] [PATH]

Example

burrow --workspace /absolute/workspace lls

Parameters

area · "download" | "upload"

Default: "download" · Allowed: download, upload

local-path · string
Contained within the selected root; absolute contained paths accepted. lcd requires a path.

Default: "."

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Inspects local metadata and records history; escaping or broken links are labelled.

Returns

FileListing. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: lls [download|upload] [PATH]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/files.go
semantic-check: core/cmd/burrow/files_check.py

Evidence limits · JSON inventory

files.pwd

Resolve a remote directory

supported

Invocation

burrow --workspace PATH scp NAME [pwd [PATH]] [--request ID]

Example

burrow --workspace /absolute/workspace scp target pwd

Parameters

name · string
Workspace-local connection/profile name, 1–24 ASCII letters, digits, underscores or hyphens. Must start with a letter or digit; no paths.
remote-path · string
Remote SFTP path; CLI never retains a working directory between invocations; TUI does.

Default: "."

request-id · string
Optional --request ID for discovery; required positional ID for cancel. Choose a fresh non-secret ID per request. Scoped to the selected connection creation. Cancellation is remembered for one minute and affects no transfers.

Pattern: ^[A-Za-z0-9_-]{1,64}$

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Queries remote SFTP through the existing master; records file history. CLI is stateless; TUI keeps current directories.

Returns

FileListing. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: scp NAME [pwd [PATH]]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/remote_files.go
semantic-check: core/cmd/burrow/files_lab.py

Evidence limits · JSON inventory

files.roots

Inspect effective transfer roots

supported

Invocation

burrow --workspace PATH local

Example

burrow --workspace /absolute/workspace local

Parameters

No operation-specific parameters.

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Inspects existing state; requires a verified running workspace. Operational audit/history may be appended; does not initialize a workspace or connect.

Returns

FileRoots. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: local
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/files.go
semantic-check: core/cmd/burrow/files_check.py

Evidence limits · JSON inventory

files.set-root

Persist a workspace transfer root

supported

Invocation

burrow --workspace PATH local [download|upload] PATH

Example

burrow --workspace /absolute/workspace local download /absolute/workspace/downloads

Parameters

area · "download" | "upload"

Default: "download" · Allowed: download, upload

path · string
Absolute canonical local path; ownership, permissions and symlink checks apply.

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Creates a missing private root directory, validates it and persists the selection; never moves or deletes files; unsafe roots fail without fallback.

Returns

FileRoots. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: local [download|upload] PATH
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/files.go
semantic-check: core/cmd/burrow/files_check.py

Evidence limits · JSON inventory

files.tree

Read a bounded remote directory tree

supported

Invocation

burrow --workspace PATH scp NAME tree [PATH] [--request ID]

Example

burrow --workspace /absolute/workspace scp target tree

Parameters

name · string
Workspace-local connection/profile name, 1–24 ASCII letters, digits, underscores or hyphens. Must start with a letter or digit; no paths.
remote-path · string
Remote SFTP path; CLI never retains a working directory between invocations; TUI does.

Default: "."

request-id · string
Optional --request ID for discovery; required positional ID for cancel. Choose a fresh non-secret ID per request. Scoped to the selected connection creation. Cancellation is remembered for one minute and affects no transfers.

Pattern: ^[A-Za-z0-9_-]{1,64}$

Approval and effects

No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.

Reads at most 3000 entries or 30 seconds, reports partial results, and does not recurse into directory links.

Returns

FileTree. See errors and exit status before interpreting command success.

Other entry points and verification
ContractBehavior
Human entry pointBurrow management: scp NAME tree [PATH]
ScopeExplicit workspace; resource names and IDs are workspace-local.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandAccepted through the verified daemon with normal Hovel approval.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/remote_files.go
semantic-check: core/cmd/burrow/files_lab.py

Evidence limits · JSON inventory