Get File Info

Gets information about a file

Usage #

// Import the typed helper
import { getFile } from "@hotglue/sdk/slack";
const result = await client.execute({
...getFile({
file: string,
}),
userId: "user_123",
});
// result is typed as GetFileOutput
const result = await client.execute({
integration: "slack",
tool: "get_file",
userId: "user_123",
input: {
file: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["slack"],
userId: "user_123",
}),
});
await agent.generate("run the Get File Info tool");

Required Permissions #

files:read

Input Schema #

file string required

File ID

Output Schema #

ok bool required
file object

This tool calls: #

GET https://slack.com/api/files.info