List Public Gists

Lists all public gists sorted by most recently updated

Usage #

// Import the typed helper
import { listPublicGists } from "@hotglue/sdk/github";
const result = await client.execute({
...listPublicGists({
since: string,
per_page: int,
page: int,
}),
userId: "user_123",
});
// result is typed as ListPublicGistsOutput
const result = await client.execute({
integration: "github",
tool: "list_public_gists",
userId: "user_123",
input: {
since: string,
per_page: int,
page: int,
},
});
// 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 List Public Gists tool");

Input Schema #

since string

Only gists updated after this time

per_page int
default: 30
page int
default: 1

This tool calls: #

GET https://api.github.com/gists/public