# capabilities.list

Discover concise summaries of supported and enabled operations in the selected context.

Capability: op_sys_capabilities_list
Protocol: op-sys.capabilities.v1
Runtime: 0.3.0
Availability: Local runtime
Optional integration: false
Canonical page: /docs/reference/op_sys_capabilities_list

## Authority

Commands run in the configured host context. State paths and installer operations affect that host. Follow the setup instructions for the way your runtime was installed.

## Invocation

CLI, SDK and MCP use the same operation and arguments; where a hosted HTTP binding exists, its route carries the same domain contract. Host paths and environment references refer to the runtime host. Request template: replace placeholder IDs and supply complete contract-specific objects before use. This is not a complete runnable workflow.

### CLI

```sh
op-sys --output json tools call op_sys_capabilities_list \
  --arguments '{}'
```

### Python SDK

```python
import json
from op_sys import OpSys

client = OpSys()
arguments = json.loads("{}")
result = client.capabilities.call(
    "op_sys_capabilities_list", arguments
)
print(result)
```

### MCP (initialized connection)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "op_sys_capabilities_list",
    "arguments": {}
  }
}
```

### HTTP

```sh
curl --fail-with-body --request GET "$VEYLAR_ENDPOINT/v1/capabilities" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "X-Veylar-Tenant: $TENANT_ID"
```

Named CLI command: op-sys capabilities list (use --help for flags).

SDK convenience: client.capabilities.list(…). The capability adapter may wrap the result.

## Parameters

### prefix

Optional; string. Optional literal operation-name prefix; guidance and the schema profile remain available.

minLength: 1; maxLength: 128

### limit

Optional; integer. Maximum concise operation summaries in this page.

Schema default: 25. Send null only if the input schema permits it.

minimum: 1; maximum: 100

### after

Optional; string. Resume after the operation name returned as next; preserve the prefix.

minLength: 1; maxLength: 128

### Complete input schema

```json
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "prefix": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Optional literal operation-name prefix; guidance and the schema profile remain available."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 25,
      "description": "Maximum concise operation summaries in this page."
    },
    "after": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Resume after the operation name returned as next; preserve the prefix."
    }
  },
  "required": []
}
```

## Behavior

- Retry: read_only. Concurrency: none.
- Required rights: authenticated client context. Check discovery for environment availability and effective authorization.
- start returns an offline first-use summary. OpSys construction and ordinary reads do not create a ledger.
- Use explicit paths and inspect context before writing. Updating the runtime and uninstalling it are separate from deleting ledger data.

## Response

Returns CapabilityPage with at most 25 summaries by default (maximum 100), next, general guidance and schema_profile. Pass next as after with the same prefix; inspect one operation using capabilities.get for full schemas, limits and errors.

### Complete result JSON Schema

```json
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "bindings": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "sdk": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "cli": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "mcp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "http": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ]
                  },
                  "path": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "input": {
                    "type": "object"
                  },
                  "result": {
                    "type": "object"
                  }
                },
                "required": [
                  "method",
                  "path"
                ]
              }
            },
            "required": [
              "sdk",
              "cli",
              "mcp"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "account",
              "client",
              "context",
              "ledger",
              "invitation"
            ]
          },
          "effect": {
            "enum": [
              "read",
              "write"
            ],
            "type": "string"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 64
          },
          "retry": {
            "type": "string",
            "maxLength": 256
          },
          "concurrency": {
            "type": "string",
            "maxLength": 256
          },
          "supported": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "authorized": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "name",
          "description",
          "bindings",
          "scope",
          "effect",
          "permissions",
          "retry",
          "concurrency",
          "supported",
          "enabled",
          "authorized",
          "version"
        ]
      },
      "maxItems": 100
    },
    "guidance": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "principles": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "maxItems": 16
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "purpose": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "operations": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "maxItems": 16
              }
            },
            "required": [
              "purpose",
              "operations"
            ]
          },
          "maxItems": 16
        }
      },
      "required": [
        "principles",
        "steps"
      ]
    },
    "schema_profile": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "validator": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "keywords": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "maxItems": 64
        },
        "annotation_keywords": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "maxItems": 64
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "maxItems": 16
        },
        "unsupported_behavior": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        }
      },
      "required": [
        "validator",
        "keywords",
        "annotation_keywords",
        "types",
        "unsupported_behavior"
      ]
    },
    "next": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "description": "Operation-name continuation, or null when this selection is complete."
    }
  },
  "required": [
    "items",
    "guidance",
    "schema_profile",
    "next"
  ]
}
```


[Runtime output field catalog](/docs/output-contracts.json) (descriptive contracts, not JSON Schema validators).

CLI: use --output json. For tools call, read the operation result at payload.tool.result; payload.tool.name identifies the capability. The outer envelope is {schema_version: "v1", payload: {tool: {name, result}}}.

Python: client.capabilities.call(name, arguments) returns the operation result. SDK exceptions preserve reason and code.

MCP: tools/call returns JSON text and structuredContent. Application failures set isError; inspect reason/code instead of matching message text.

Related resource schemas (not necessarily a complete operation response):
- [ledger-core.v1.schema.json](/docs/schemas/ledger-core.v1.schema.json)

## Errors and recovery

[Ledger limits and operation catalog](/docs/ledger-core.json)

Canonical operation: capabilities.list

Permissions: client context

Retry: read_only; concurrency: none

Codes: invalid_input, contract_invalid, payload_invalid, contract_not_admitted, permission_denied, not_found, revision_conflict, operation_conflict, unsupported, authority_unavailable, outcome_uncertain, outcome_expired, validation_context_unavailable, file_unavailable, integrity_failure, ledger_archived, ledger_deleted, resnapshot_required, identity_changed, authority_fenced, withdrawal_requires_resolution, limit_exceeded, rate_limited, payment_required

[HTTP status mappings and schemas](/docs/ledger-core.openapi.json)

- state_permissions_unsecured: Use a private owner-controlled state path and inspect permissions before repair.

Family reasons are representative, not exhaustive.

A timeout is not proof that a write failed. Reuse the documented retry identity, batch, offset or mutation ID. If this operation has no documented retry identity, inspect its state before repeating it.

On authorization failure, correct the configured identity or grants; do not change the local actor to impersonate a hosted principal. On validation failure, correct the input against the published schema and selected contract.

On a revision or state conflict, retrieve current state and reconcile intent. Do not automatically overwrite a competing update. Preserve unknown additive response fields when building consumers.

## Source manuals

- [installation](/docs/raw/manuals/installation.md)
- [cli-contract](/docs/raw/manuals/cli-contract.md)
- [public-capabilities](/docs/raw/manuals/public-capabilities.md)
- [command-output-schema](/docs/raw/manuals/command-output-schema.md)
