Delete Gist

Deletes a gist

Usage #

// Import the typed helper
import { deleteGist } from "@hotglue/sdk/github";
const result = await client.execute({
...deleteGist({
gist_id: string,
}),
userId: "user_123",
});
// result is typed as DeleteGistOutput
const result = await client.execute({
integration: "github",
tool: "delete_gist",
userId: "user_123",
input: {
gist_id: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["github"],
userId: "user_123",
}),
});
await agent.generate("run the Delete Gist tool");

Required Permissions #

gist

Input Schema #

gist_id string required

Gist ID

This tool calls: #

DELETE https://api.github.com/gists/{gist_id}