Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ const tools = {
topN: z.number().default(1).describe('Maximum number of results'),
namesOnly: z.boolean().default(false).describe('If true, only return definition names (for overview)')
},
annotations: {
readOnlyHint: true,
destructiveHint: false,
idempotentHint: false
},
handler: async ({ projectPath, name, kind, topN, namesOnly }) => {
const model = await getModel(projectPath)
const defNames = kind
Expand All @@ -30,6 +35,11 @@ const tools = {
},
search_docs: {
title: 'Search in CAP Documentation',
annotations: {
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true
},
description:
"Searches code snippets of CAP documentation for the given query. You MUST use this tool if you're unsure about CAP APIs for CDS, Node.js or Java. Optionally returns only code blocks.",
inputSchema: {
Expand Down