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 0901922
Browse filesBrowse the repository at this point in the historyBrowse files
Three things decide whether `action_<name>` exists, and `os validate` checks
234
+
An object-bound Action's tool is `action_<object>__<action>` (the object
235
+
name, two underscores, the action name), and a top-level Action's, bound to no
236
+
object, is `action_<action>`. A qualified name longer than 64 characters is
237
+
shortened to its head plus a hash, so take the exact spelling from
238
+
`actionToolName` in `@objectstack/spec/ai` rather than writing a long one by
239
+
hand. The older `action_<action>` spelling of an object-bound Action still
240
+
resolves, but to every exposed Action of that name, whatever its object.
241
+
`action_*` keeps its meaning: every exposed Action.
242
+
243
+
Three things decide whether an Action's tool exists, and `os validate` checks
235
244
all three (`ai-skill-tool-unresolved`):
236
245
237
246
| Requirement | Why |
@@ -268,9 +277,10 @@ itself (a different LLM-facing description, fewer exposed parameters).
268
277
when the server it is installed on lists every tool the skill binds, read from
269
278
that server's own tool list when the prompt request is answered. A plain name is
270
279
served by a tool of that name, a trailing wildcard (`describe_*`) by any listed
271
-
tool it matches, and an `action_<name>` entry (or `action_*`) also by
272
-
`run_action`. A skill that binds no tool is offered as before, and `prompts/get`
273
-
answers a withheld skill as it answers an unknown prompt name. This holds on the
280
+
tool it matches, and any entry that starts with `action_` (`action_*`
281
+
included) also by `run_action`. A skill that binds no tool is offered as
282
+
before, and `prompts/get` answers a withheld skill as it answers an unknown
283
+
prompt name. This holds on the
274
284
HTTP endpoint and on any host that drives its own MCP server and calls
275
285
`registerSkillPrompts`, stdio included; the plugin's own long-lived stdio
276
286
server, which projects skills through `MCPServerRuntime.bridgePrompts` instead,
@@ -335,7 +345,7 @@ own `ask` / `build` records use exactly these fields):
335
345
|`instructions`| System prompt / prime directives |
336
346
|`model`| Model config: `model` (the model name, optional — absent means the deployment's default model), `temperature`, `maxTokens`, `topP`. There is no `provider`: it was **removed in protocol 19 (#37712)** because no runtime read it — the deployment's AI settings choose the provider, and resolve the model name among the providers they turn on |
337
347
|`skills`| Skill names to attach (the primary Agent → Skill → Tool capability model) |
338
-
|`tools`|**Removed in protocol 17 (#3894)** — the key is not on the type, so a `defineAgent({ … })` literal that sets it fails `tsc` as an excess property, and the strict schema refuses it at parse as an unknown key, naming the [upgrade guide](https://objectstack.ai/docs/protocol-upgrade). This is **not** a rename: there is no key the value moves to. Declare each tool on a **skill** instead — a platform tool by its registered name, or `action_<name>` for one of your own AI-exposed Actions — and attach that skill through `skills` (ADR-0064) |
348
+
|`tools`|**Removed in protocol 17 (#3894)** — the key is not on the type, so a `defineAgent({ … })` literal that sets it fails `tsc` as an excess property, and the strict schema refuses it at parse as an unknown key, naming the [upgrade guide](https://objectstack.ai/docs/protocol-upgrade). This is **not** a rename: there is no key the value moves to. Declare each tool on a **skill** instead — a platform tool by its registered name, or `action_<object>__<action>` (`action_<action>` when top-level) for one of your own AI-exposed Actions — and attach that skill through `skills` (ADR-0064) |
339
349
|`knowledge`|**Removed in protocol 17 (#3896)** — the key is not on the type, so a `defineAgent({ … })` literal that sets it fails `tsc` as an excess property, and the strict schema refuses it at parse as an unknown key, naming the [upgrade guide](https://objectstack.ai/docs/protocol-upgrade). Declaring `sources` / `indexes` here never scoped retrieval: `search_knowledge` takes `sourceIds` from the LLM's own tool-call arguments, not from the agent record, so an author who “scoped” access here scoped nothing. This is **not** a rename: there is no key the value moves to — delete the block. Restrict retrieval at the knowledge-service / source level (per-source permissions), and describe intended grounding in `instructions` so the model asks for the right sources |
340
350
341
351
There is no `type` field and no fixed agent "type" taxonomy — behaviour comes from
@@ -398,7 +408,7 @@ Always be professional and data-driven.`,
398
408
},
399
409
400
410
// Capability comes from skills — the only tool-bearing slot (ADR-0064).
401
-
// Each skill names the platform tools and `action_<name>` tools it needs.
411
+
// Each skill names the platform tools and `action_<object>__<action>` tools it needs.
402
412
// (There is no agent-level `knowledge` block — it was removed in protocol
403
413
// 17 (#3896 close-out): declaring sources never scoped retrieval. Restrict
404
414
// access at the knowledge-service/source level; describe intended
@@ -464,9 +474,9 @@ Use reputable data sources.`,
464
474
maxTokens: 1000,
465
475
},
466
476
467
-
// The enrichment Flows are exposed with `ai.exposed`, so the runtime
468
-
//materialises `action_lookup_company` / `action_enrich_contact` for the
469
-
// skill to name.
477
+
// The enrichment Flow actions on `crm_lead` are exposed with `ai.exposed`,
478
+
//so the runtime materialises `action_crm_lead__lookup_company` /
479
+
//`action_crm_lead__enrich_contact` for the skill to name.
Copy file name to clipboardExpand all lines: content/docs/ai/tools.mdx
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ differs is where that name comes from:
34
34
| What you want the agent to do | How you get there | Tool record? |
35
35
|:---|:---|:---|
36
36
| Read, query, aggregate, or search — what the platform already does for every app | Name the **platform tool** in your skill: `query_records`, `get_record`, `aggregate_data`, `search_knowledge`, `describe_object`, … |**No**|
37
-
| Run something your app already does — a `script` / `api` / `flow` Action | Opt the Action in with `ai.exposed` + `ai.description`; the runtime materialises one `action_<name>` tool per exposed Action and your skill names that. See [Actions as Tools](/docs/ai/actions-as-tools). |**No**|
37
+
| Run something your app already does — a `script` / `api` / `flow` Action | Opt the Action in with `ai.exposed` + `ai.description`; the runtime materialises one `action_<object>__<action>` tool per exposed Action (`action_<action>` for a top-level one) and your skill names that. See [Actions as Tools](/docs/ai/actions-as-tools). |**No**|
38
38
| Reach a system outside your app | Connect it over MCP — see [Connect an MCP Client](/docs/ai/connect-mcp)|**No**|
39
39
| Present an executable to the model *differently* from the way your app runs it | A `tool` record — the optional refinement layer described below |**Yes**, and rarely |
0 commit comments