Unified · Split
| @@ -13,6 +13,7 @@ describe("skills registry", () => { · 12 unmodified lines | ||
| 13 | 13 | expect(EXECUTE_SKILL.body).toContain( |
| 14 | 14 | "Do not use `fetch` — all API calls go through `tools.*`.", |
| 15 | 15 | ); |
| 16 | + expect(EXECUTE_SKILL.body).toContain("read `result.data.connections`"); | |
| 16 | 17 | }); |
| 17 | 18 | |
| 18 | 19 | it("finds a skill by exact name and misses unknown names", () => { |
| @@ -36,7 +36,7 @@ const EXECUTE_SKILL_BODY = [ · 35 unmodified lines | ||
| 36 | 36 | '2. `const path = matches[0]?.path; if (!path) return "No matching tools found.";`', |
| 37 | 37 | "3. `const details = await tools.describe.tool({ path });`", |
| 38 | 38 | "4. Use `details.inputTypeScript` / `details.outputTypeScript` and `details.typeScriptDefinitions` for compact shapes.", |
| 39 | − "5. Use `tools.executor.coreTools.connections.list({})` when you need live saved-connection inventory.", | |
| 39 | + "5. For live saved-connection inventory, call `tools.executor.coreTools.connections.list({})`; after checking `result.ok`, read `result.data.connections`.", | |
| 40 | 40 | "6. Call the tool: `const result = await tools.<path>(input);`", |
| 41 | 41 | "", |
| 42 | 42 | "## Rules", |