You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f91b2a1
Browse filesBrowse the repository at this point in the historyBrowse files
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
Copy file name to clipboardExpand all lines: content/docs/ai/actions-as-tools.mdx
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,8 @@ client, or a local model) connects over the Model Context Protocol, and the
15
15
server exposes three business-action tools — `list_actions`, `run_action` and
16
16
`resume_run` — bound to the caller's principal. The agent invokes actions the same way the
17
17
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
19
20
runtime are required.
20
21
21
22
<Callouttype="warn">
@@ -49,7 +50,7 @@ bound to the caller's principal (the API key acts as the user):
49
50
50
51
| Tool | What it does |
51
52
|:---|:---|
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. |
53
54
|`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. |
54
55
|`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). |
55
56
@@ -101,7 +102,8 @@ data-layer backstop, is the boundary (#2849).
101
102
102
103
The bridge walks every registered object's `actions[]` and offers only actions
103
104
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
105
107
(`sys_*`) is offered only on its own `ai.exposed: true` — the object's name is
106
108
not a second opt-in to clear, and no deployment switch opens one that is not
107
109
flagged — and then runs behind every gate below, as on any other object (#27681).
0 commit comments