Skip to content

Commit f91b2a1

Browse files
committed
docs(ai): actions-as-tools names every list_actions unavailable code
The list_actions row named only the credential mark. It now names the three codes a listed action can carry, the membership-grade mark among them, and the intro and "What gets exposed" sentences no longer say every listed action can be run. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvdpdhupF2wQf2NUU8
1 parent 3de7508 commit f91b2a1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎content/docs/ai/actions-as-tools.mdx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ client, or a local model) connects over the Model Context Protocol, and the
1515
server exposes three business-action tools — `list_actions`, `run_action` and
1616
`resume_run` — bound to the caller's principal. The agent invokes actions the same way the
1717
Console toolbar does — but only actions the author explicitly exposed to AI, and
18-
only ones the caller is permitted to run. No cloud service and no ObjectOS
18+
only ones the caller's permissions allow; one the caller still cannot run as it
19+
is connected is listed with `unavailable` (see below). No cloud service and no ObjectOS
1920
runtime are required.
2021

2122
<Callout type="warn">
@@ -49,7 +50,7 @@ bound to the caller's principal (the API key acts as the user):
4950

5051
| Tool | What it does |
5152
|:---|:---|
52-
| `list_actions` | Enumerates the business actions that are **AI-exposed** (`ai.exposed: true`) **and** the caller is permitted to run — name, target object, description, whether it needs a `recordId`, whether it is destructive, its declared params, and `aiExposed: true` (the author's opt-in, attested by the bridge). An `api` action that `run_action` would refuse for the caller's credential (see the `api` row below) is still listed, with `unavailable: { code, reason }`: `code` is `UNAUTHENTICATED`, the code `run_action` answers with, and `reason` is the same sentence, so an agent can tell its user why it cannot run the action. |
53+
| `list_actions` | Enumerates the business actions that are **AI-exposed** (`ai.exposed: true`) **and** the caller's permissions allow — name, target object, description, whether it needs a `recordId`, whether it is destructive, its declared params, and `aiExposed: true` (the author's opt-in, attested by the bridge). An action that `run_action` would refuse for this caller is still listed, with `unavailable: { code, reason }`. `code` is the code `run_action` answers with: `UNAUTHENTICATED` for an `api` action whose endpoint does not accept the caller's credential (see the `api` row below); `ACTION_CONFIRMATION_REQUIRED` for an action declaring `ai.requiresConfirmation: true` listed for an AI service account; `PERMISSION_DENIED` for an `api` action whose target is an organization endpoint (inviting or removing a member, editing the organization or its teams) that the caller's membership grade in this organization (owner, admin, delegated admin) does not reach. `reason` says why and what would let the action run, so an agent can tell its user why it cannot run it. Nothing is hidden for these reasons, and the mark changes no run: the endpoint still judges the call. |
5354
| `run_action` | Invokes an action by name with `{ recordId, params }`. Invocation is gated (author opt-in + capabilities); the action body then runs the app's registered logic as trusted code. |
5455
| `resume_run` | Continues a flow run that `run_action` answered with `status: "paused"` and a `screen`, by submitting that screen's field values as `{ runId, values }`. Only the user who started the run can resume it, behind the same gates as `run_action`. See [Completing a paused screen flow](#completing-a-paused-screen-flow). |
5556

@@ -101,7 +102,8 @@ data-layer backstop, is the boundary (#2849).
101102

102103
The bridge walks every registered object's `actions[]` and offers only actions
103104
that are **AI-exposed** (`ai.exposed: true`), have a headless dispatch path,
104-
**and** that the caller is permitted to run. An action on a system object
105+
**and** that the caller's permissions allow (one `run_action` would still refuse
106+
for this caller is listed with `unavailable`, as above). An action on a system object
105107
(`sys_*`) is offered only on its own `ai.exposed: true` — the object's name is
106108
not a second opt-in to clear, and no deployment switch opens one that is not
107109
flagged — and then runs behind every gate below, as on any other object (#27681).

0 commit comments

Comments
 (0)