You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/02.elicitation/01.problem/src/tools.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -290,12 +290,12 @@ export async function initializeTools(agent: EpicMeMCP) {
290
290
constexistingTag=awaitagent.db.getTag(id)
291
291
invariant(existingTag,`Tag ID "${id}" not found`)
292
292
293
-
// 🐨 first check whether the client has the elicitInput capability, if it does then:
293
+
// 🐨 first check whether the client has the elicitation capability, if it does then:
294
294
// 🐨 Use agent.server.server.elicitInput to ask the user to confirm deletion of the tag.
295
295
// - The message should be: `Are you sure you want to delete tag "${existingTag.name}" (ID: ${id})?`
296
296
// - The requestedSchema should be an object with a boolean property "confirmed".
297
297
// 🐨 If the user does not confirm, return structuredContent with success: false and the tag.
298
-
// - Also return content with a text block saying "Tag deletion cancelled", the tag resource link, and the structuredContent.
298
+
// - Also return content with a text block saying `Deleting tag "${existingTag.name}" (ID: ${id}) rejected by the user.`, the tag resource link, and the structuredContent.
0 commit comments