Skip to main content

File Resources

This category lists the 4 Runtime system commands under system.file-bag..

1. List form assets​

Full name: system.file-bag.form-asset.list

List file bag form asset records. This tenant-scoped Runtime command validates its input against the registered command schema. · Risk: Read

sl system file-bag form-asset list \
[--form-id <uuid>] [--field-api-name value] \
[--asset-kind image|video|file|audio] [--keyword value] \
[--cursor value] [--limit n] [--json]

Parameters:

  • formId(optional)— Form UUID. Discover it with system.form.schema.list. Omit it to search all forms
  • fieldApiName(optional)— Exact attachment field API name. It may be combined with formId and assetKind
  • assetKind(optional)— Attachment field kind: image, video, file, or audio
  • keyword(optional)— Case-insensitive match against stored/original filename, form name, field name, or field API name; at most 200 characters
  • cursor(optional)— Opaque nextCursor returned by the previous request
  • limit(optional)— Maximum files to return, 1-100; defaults to 20

2. List form asset scopes​

Full name: system.file-bag.form-asset.scope.list

List file bag form asset scope records. This tenant-scoped Runtime command validates its input against the registered command schema. · Risk: Read

sl system file-bag form-asset scope list [--json]

Parameters: none beyond common options such as --json.

3. List AI artifacts​

Full name: system.file-bag.ai-artifact.list

List file bag AI artifact records. This tenant-scoped Runtime command validates its input against the registered command schema. · Risk: Read

sl system file-bag ai-artifact list \
--app-code value [--keyword value] [--cursor value] [--limit n] \
[--json]

Parameters:

  • appCode(required)— Workspace application code that owns the AI run artifact. Discover application codes with system.workspace-app.list
  • keyword(optional)— Case-insensitive match against artifact filename, stored filename, or original filename; at most 200 characters
  • cursor(optional)— Opaque nextCursor returned by the previous request
  • limit(optional)— Maximum artifacts to return, 1-100; defaults to 20

4. Batch-delete AI artifact​

Full name: system.file-bag.ai-artifact.batch-delete

Batch-delete file bag AI artifact resource. This tenant-scoped Runtime command validates its input against the registered command schema. · Risk: High risk

sl system file-bag ai-artifact batch-delete \
--app-code value --artifact-ids-json '["uuid"]' [--json]

Parameters:

  • appCode(required)— Exact owning application code. It must match every selected artifact
  • artifactIds(required)— Unique artifact UUIDs returned by ai-artifact.list; 1-100 values. Do not pass fileId values