Skip to content

sp workspace

Phase: v2
When agents use this: Manage or export interface cases from the console filesystem model (optional for record-driven replay workflows).

Synopsis

Workspace filesystem: folders, interfaces, cases, import/export.

Subcommands (representative)

SubcommandREST area
list / treeQuery workspace items
case queryPOST /api/filesystem/queryCase
case savePOST /api/filesystem/saveCase
interface queryPOST /api/filesystem/queryInterface
exportPOST /api/filesystem/export
importPOST /api/filesystem/import
env listPOST /api/environment/queryEnvsByWorkspace

Examples

bash
sp workspace tree --workspace-id ws-1 --json
sp workspace case query --case-id case-1 --json
sp workspace export --item-id item-1 --out-dir .sp-work --json

Agent guidance

Prefer record-driven replay (sp replay run from production traffic) unless the skill explicitly manages manual cases in a workspace.

REST mapping

Base: /api/filesystem/*, /api/environment/*, /api/label/*

See API mapping for the full FileSystemController surface.