Get Gist

Gets a specific gist

Usage #

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

Input Schema #

gist_id string required

Gist ID

Output Schema #

id string required
description string
public bool required
html_url string required
comments int
created_at string required
updated_at string

This tool calls: #

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