Usage #
// Import the typed helper
import { updateGist } from "@hotglue/sdk/github";
const result = await client.execute({
...updateGist({
gist_id: string,
description: string,
files: record,
}),
userId: "user_123",
});
// result is typed as UpdateGistOutput
const result = await client.execute({
integration: "github",
tool: "update_gist",
userId: "user_123",
input: {
gist_id: string,
description: string,
files: record,
},
});
// 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 Update Gist tool");
Required Permissions #
gist
Input Schema #
gist_id
string
required
Gist ID
description
string
New description
files
object
Object with filename as key. Set content to update, null to delete.
This tool calls: #
PATCH
https://api.github.com/gists/{gist_id}