Get User Info

Gets information about a specific user

Usage #

// Import the typed helper
import { getUser } from "@hotglue/sdk/slack";
const result = await client.execute({
...getUser({
user: string,
include_locale: bool,
}),
userId: "user_123",
});
// result is typed as GetUserOutput
const result = await client.execute({
integration: "slack",
tool: "get_user",
userId: "user_123",
input: {
user: string,
include_locale: bool,
},
});
// 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 User Info tool");

Required Permissions #

users:read

Input Schema #

user string required

User ID to get info for

include_locale bool

Include locale info

default: false

Output Schema #

ok bool required
user object

This tool calls: #

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