Skip to content

Commit e0cdfb7

Browse files
committed
feat: add delete_tool
1 parent 000f443 commit e0cdfb7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/tools/tool.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,14 @@ export const registerToolTools = (
5050
return transformToolOutput(tool);
5151
})
5252
);
53+
54+
server.tool(
55+
'delete_tool',
56+
'Deletes a Vapi tool',
57+
GetToolInputSchema.shape,
58+
createToolHandler(async (data) => {
59+
const tool = await vapiClient.tools.delete(data.toolId);
60+
return transformToolOutput(tool);
61+
})
62+
);
5363
};

0 commit comments

Comments
 (0)