diff --git a/packages/core/execution/src/skills.test.ts b/packages/core/execution/src/skills.test.ts index 97e76e1062..846acb6860 100644 --- a/packages/core/execution/src/skills.test.ts +++ b/packages/core/execution/src/skills.test.ts @@ -13,6 +13,7 @@ describe("skills registry", () => { expect(EXECUTE_SKILL.body).toContain( "Do not use `fetch` — all API calls go through `tools.*`.", ); + expect(EXECUTE_SKILL.body).toContain("read `result.data.connections`"); }); it("finds a skill by exact name and misses unknown names", () => { diff --git a/packages/core/execution/src/skills.ts b/packages/core/execution/src/skills.ts index deeb31cb3b..b4803449ae 100644 --- a/packages/core/execution/src/skills.ts +++ b/packages/core/execution/src/skills.ts @@ -36,7 +36,7 @@ const EXECUTE_SKILL_BODY = [ '2. `const path = matches[0]?.path; if (!path) return "No matching tools found.";`', "3. `const details = await tools.describe.tool({ path });`", "4. Use `details.inputTypeScript` / `details.outputTypeScript` and `details.typeScriptDefinitions` for compact shapes.", - "5. Use `tools.executor.coreTools.connections.list({})` when you need live saved-connection inventory.", + "5. For live saved-connection inventory, call `tools.executor.coreTools.connections.list({})`; after checking `result.ok`, read `result.data.connections`.", "6. Call the tool: `const result = await tools.(input);`", "", "## Rules",