Star Gist

Stars a gist

Usage #

// Import the typed helper
import { starGist } from "@hotglue/sdk/github";
const result = await client.execute({
...starGist({
gist_id: string,
}),
userId: "user_123",
});
// result is typed as StarGistOutput
const result = await client.execute({
integration: "github",
tool: "star_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 Star Gist tool");

Required Permissions #

gist

Input Schema #

gist_id string required

Gist ID

This tool calls: #

PUT https://api.github.com/gists/{gist_id}/star