Skip to content

Commit 44c5bf2

Browse files
committed
chore: improve descriptions in DefinitionSchema and registration function for clarity
1 parent f8c4d5b commit 44c5bf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/definition-tools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ const DefinitionSchema = v.object({
1818
v.string(),
1919
v.minLength(1),
2020
v.description(
21-
'Svelte 5 identifier to look up. Examples: "$state", "$derived", "$props", "$effect", "snippets", "onclick", "component-events". Use exact identifiers for best results.',
21+
'Svelte 5 identifier: $state, $derived, $props, $effect, snippets, onclick, component-events',
2222
),
2323
),
2424
format: v.pipe(
2525
v.optional(v.picklist(['syntax', 'quick', 'full']), 'full'),
2626
v.description(
27-
'Response format: "syntax" returns just TypeScript signature (~50 words), "quick" returns definition + minimal example (~200 words), "full" returns complete definition with examples (~500-1000 words).',
27+
'Output detail level: "syntax" (signature only), "quick" (with example), "full" (complete docs)',
2828
),
2929
),
3030
});
@@ -299,7 +299,7 @@ export function register_definition_tools(
299299
{
300300
name: 'svelte_definition',
301301
description:
302-
'Get authoritative Svelte 5 definitions extracted from TypeScript declarations. Returns precise syntax, parameters, and variants for runes ($state, $derived, $props, $effect), features (snippets, onclick), and patterns (component-events). Use "syntax" format for quick reference (~50 words), "quick" for definition + example (~200 words), or "full" for complete documentation (~500-1000 words). Replaces 13+ specialized tools with a single, consistent interface.',
302+
'Lookup Svelte 5 & SvelteKit definitions from TypeScript declarations. Covers all runes ($state, $derived, $props, $effect), features (snippets, onclick, component-events), and patterns. Supports syntax/quick/full format for varying detail levels.',
303303
schema: DefinitionSchema,
304304
},
305305
definition_handler,

0 commit comments

Comments
 (0)