diff --git a/.opencode/tools/ask262-search-spec-sections.ts b/.opencode/tools/ask262-search-spec-sections.ts index 337d5de..e193f9a 100644 --- a/.opencode/tools/ask262-search-spec-sections.ts +++ b/.opencode/tools/ask262-search-spec-sections.ts @@ -10,7 +10,7 @@ import { createSearchSpecSectionsTool } from "../../src/agent-tools"; export default tool({ description: - "Searches the ECMAScript specification for sections relevant to a query. " + + "Vector search the ECMAScript specification for sections relevant to a query. " + "Returns JSON array with sectionId, sectionTitle, score, partIndex, totalParts, and content. " + "Use this when you need to find spec sections related to a JavaScript topic or question.", args: { diff --git a/src/agent-tools/searchSpecSections.ts b/src/agent-tools/searchSpecSections.ts index a414d08..da4f2bd 100644 --- a/src/agent-tools/searchSpecSections.ts +++ b/src/agent-tools/searchSpecSections.ts @@ -27,7 +27,7 @@ export function createSearchSpecSectionsTool( return new DynamicStructuredTool({ name: "ask262_search_spec_sections", description: - "Searches the ECMAScript specification for sections relevant to a query. Returns JSON array with sectionId, sectionTitle, score, partIndex, totalParts, and content. partIndex and totalParts indicate which chunk of a multi-part section this is (0-indexed, partIndex+1/totalParts), null if single-part.", + "Vector search the ECMAScript specification for sections relevant to a query. Returns JSON array with sectionId, sectionTitle, score, partIndex, totalParts, and content. partIndex and totalParts indicate which chunk of a multi-part section this is (0-indexed, partIndex+1/totalParts), null if single-part.", schema: searchSpecSchema, func: async ({ query }) => { // Generate embedding for the query