Skip to content

Commit 65d94ce

Browse files
authored
Document connections.list result shape in skills.ts (#1808)
1 parent 0ae7a25 commit 65d94ce

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/execution/src/skills.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ describe("skills registry", () => {
1313
expect(EXECUTE_SKILL.body).toContain(
1414
"Do not use `fetch` — all API calls go through `tools.*`.",
1515
);
16+
expect(EXECUTE_SKILL.body).toContain("read `result.data.connections`");
1617
});
1718

1819
it("finds a skill by exact name and misses unknown names", () => {

packages/core/execution/src/skills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const EXECUTE_SKILL_BODY = [
3636
'2. `const path = matches[0]?.path; if (!path) return "No matching tools found.";`',
3737
"3. `const details = await tools.describe.tool({ path });`",
3838
"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`.",
4040
"6. Call the tool: `const result = await tools.<path>(input);`",
4141
"",
4242
"## Rules",

0 commit comments

Comments
 (0)