惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
H
Help Net Security
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
A
About on SuperTechFans
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
I
InfoQ
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
U
Unit 42
The Cloudflare Blog
Y
Y Combinator Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(gateway): add SDK-facing tools.invoke RPC · openclaw...
ai-hpc · 2026-05-01 · via Recent Commits to openclaw:main

@@ -25,24 +25,24 @@ resources.

25252626

`@openclaw/sdk` ships with:

272728-

| Surface | Status | What it does |

29-

| ------------------------- | ------- | ---------------------------------------------------------------------------- |

30-

| `OpenClaw` | Ready | Main client entry point. Owns transport, connection, requests, and events. |

31-

| `GatewayClientTransport` | Ready | WebSocket transport backed by the Gateway client. |

32-

| `oc.agents` | Ready | Lists, creates, updates, deletes, and gets agent handles. |

33-

| `Agent.run()` | Ready | Starts a Gateway `agent` run and returns a `Run`. |

34-

| `oc.runs` | Ready | Creates, gets, waits for, cancels, and streams runs. |

35-

| `Run.events()` | Ready | Streams normalized per-run events with replay for fast runs. |

36-

| `Run.wait()` | Ready | Calls `agent.wait` and returns a stable `RunResult`. |

37-

| `Run.cancel()` | Ready | Calls `sessions.abort` by run id, with session key when available. |

38-

| `oc.sessions` | Ready | Creates, resolves, sends to, patches, compacts, and gets session handles. |

39-

| `Session.send()` | Ready | Calls `sessions.send` and returns a `Run`. |

40-

| `oc.models` | Ready | Calls `models.list` and the current `models.authStatus` status RPC. |

41-

| `oc.tools` | Partial | Lists tool catalog and effective tools; direct tool invocation is not wired. |

42-

| `oc.artifacts` | Ready | Lists, gets, and downloads Gateway transcript artifacts. |

43-

| `oc.approvals` | Ready | Lists and resolves exec approvals through Gateway approval RPCs. |

44-

| `oc.rawEvents()` | Ready | Exposes raw Gateway events for advanced consumers. |

45-

| `normalizeGatewayEvent()` | Ready | Converts raw Gateway events into the stable SDK event shape. |

28+

| Surface | Status | What it does |

29+

| ------------------------- | ------ | -------------------------------------------------------------------------- |

30+

| `OpenClaw` | Ready | Main client entry point. Owns transport, connection, requests, and events. |

31+

| `GatewayClientTransport` | Ready | WebSocket transport backed by the Gateway client. |

32+

| `oc.agents` | Ready | Lists, creates, updates, deletes, and gets agent handles. |

33+

| `Agent.run()` | Ready | Starts a Gateway `agent` run and returns a `Run`. |

34+

| `oc.runs` | Ready | Creates, gets, waits for, cancels, and streams runs. |

35+

| `Run.events()` | Ready | Streams normalized per-run events with replay for fast runs. |

36+

| `Run.wait()` | Ready | Calls `agent.wait` and returns a stable `RunResult`. |

37+

| `Run.cancel()` | Ready | Calls `sessions.abort` by run id, with session key when available. |

38+

| `oc.sessions` | Ready | Creates, resolves, sends to, patches, compacts, and gets session handles. |

39+

| `Session.send()` | Ready | Calls `sessions.send` and returns a `Run`. |

40+

| `oc.models` | Ready | Calls `models.list` and the current `models.authStatus` status RPC. |

41+

| `oc.tools` | Ready | Lists, scopes, and invokes Gateway tools through the policy pipeline. |

42+

| `oc.artifacts` | Ready | Lists, gets, and downloads Gateway transcript artifacts. |

43+

| `oc.approvals` | Ready | Lists and resolves exec approvals through Gateway approval RPCs. |

44+

| `oc.rawEvents()` | Ready | Exposes raw Gateway events for advanced consumers. |

45+

| `normalizeGatewayEvent()` | Ready | Converts raw Gateway events into the stable SDK event shape. |

46464747

The SDK also exports the core types used by those surfaces:

4848

`AgentRunParams`, `RunResult`, `RunStatus`, `OpenClawEvent`,

@@ -216,11 +216,19 @@ await oc.models.list();

216216

await oc.models.status({ probe: false }); // calls models.authStatus

217217

```

218218219-

Tool helpers expose the Gateway catalog and effective tool view:

219+

Tool helpers expose the Gateway catalog, effective tool view, and direct

220+

Gateway tool invocation. `oc.tools.invoke()` returns a typed envelope instead

221+

of throwing for policy or approval refusals.

220222221223

```typescript

222224

await oc.tools.list();

223225

await oc.tools.effective({ sessionKey: "main" });

226+

await oc.tools.invoke("tool-name", {

227+

args: { input: "value" },

228+

sessionKey: "main",

229+

confirm: false,

230+

idempotencyKey: "tool-call-1",

231+

});

224232

```

225233226234

Artifact helpers expose the Gateway artifact projection for session, run, or

@@ -256,8 +264,6 @@ await oc.tasks.list();

256264

await oc.tasks.get("task-id");

257265

await oc.tasks.cancel("task-id");

258266259-

await oc.tools.invoke("tool-name", {});

260-261267

await oc.environments.list();

262268

await oc.environments.create({});

263269

await oc.environments.status("environment-id");