Loading...
Loading...
Manage workspace knowledge files and libraries in the Cargo content domain — upload, list, rename, move, and remove files (PDFs, CSVs, text), and create or sync native and connector-backed libraries for retrieval-augmented generation (RAG). Use when the user wants to upload or organize knowledge files, build a knowledge library, or sync an external knowledge source. To attach these to an agent, use the cargo-ai skill.
npx skill4agent add getcargohq/cargo-skills cargo-contentNew top-level domain (CLI ≥ 1.0.19). Files and libraries moved out of thedomain into theaidomain —contentandcargo-ai content file …. The oldcargo-ai content library …commands no longer exist; ancargo-ai ai file …error means you're on the old path.unknown command
For attaching a file or library to an agent (via the releasearray), useresources. For folders that organize files, usecargo-ai(cargo-workspace-management). For batch-run input files (CSVs uploaded to drive a batch), that's a different surface —cargo-ai workspaceManagement folder …— documented incargo-ai workspaceManagement file upload.cargo-workspace-management
Seefor end-to-end file, library, and attach-to-agent examples. Seereferences/examples/files.mdfor full JSON response structures. Seereferences/response-shapes.mdfor common errors and how to fix them.references/troubleshooting.md
../cargo/references/prerequisites.md--oauth--tokencargo-ai whoamicargo-ai content file list # all uploaded files (uuid, name, contentType, size)
cargo-ai content library list # knowledge libraries (native or connector-backed)uuidcargo-ai# List all files
cargo-ai content file list
# Get a single file
cargo-ai content file get <file-uuid>
# Upload a file (optionally straight into a folder)
cargo-ai content file upload --file-path ./knowledge-base.pdf
cargo-ai content file upload --file-path ./knowledge-base.pdf --folder-uuid <folder-uuid>
# Update a file's name or folder
cargo-ai content file update --uuid <file-uuid> --name "Q1 Research Notes"
cargo-ai content file update --uuid <file-uuid> --folder-uuid <folder-uuid>
# Remove a file
cargo-ai content file remove <file-uuid>Reading content files from the context sandbox. Uploaded content files are also available read-only underin the context runtime sandbox, so a command run there can consume them — e.g..files/. The directory sits outside the committed context tree (never pushed, not writable); to add or change files usecargo-ai context runtime execute --command ls --args '["-1",".files"]'here. Seecontent file.cargo-context
nativeconnector--extractor-slugconnectorUuidcargo-connection# List libraries (filter by kind or connector)
cargo-ai content library list
cargo-ai content library list --kind native
cargo-ai content library list --kind connector --connector-uuid <connector-uuid>
# Get a single library
cargo-ai content library get <library-uuid>
# Create a connector-backed library
cargo-ai content library create \
--name "Help Center" \
--connector-uuid <connector-uuid> \
--extractor-slug <extractor-slug> \
--folder-uuid <folder-uuid> \
--config '{}'
# Update / remove
cargo-ai content library update --uuid <library-uuid> --name "Updated Name"
cargo-ai content library remove <library-uuid>resourcescargo-aiai release update-draft --resources …ai release deploy-draftreferences/examples/files.md--helpcargo-ai content file upload --help
cargo-ai content library create --help