Usage #
// Import the typed helper
import { unstarGist } from "@hotglue/sdk/github";
const result = await client.execute({
...unstarGist({
gist_id: string,
}),
userId: "user_123",
});
// result is typed as UnstarGistOutput
const result = await client.execute({
integration: "github",
tool: "unstar_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 Unstar Gist tool");
Required Permissions #
gist
Input Schema #
gist_id
string
required
Gist ID
This tool calls: #
DELETE
https://api.github.com/gists/{gist_id}/star