Lookup User by Email

Finds a user by their email address

Usage #

// Import the typed helper
import { lookupUserByEmail } from "@hotglue/sdk/slack";
const result = await client.execute({
...lookupUserByEmail({
email: string,
}),
userId: "user_123",
});
// result is typed as LookupUserByEmailOutput
const result = await client.execute({
integration: "slack",
tool: "lookup_user_by_email",
userId: "user_123",
input: {
email: 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 Lookup User by Email tool");

Required Permissions #

users:read.email

Input Schema #

email string required

Email address to look up

Output Schema #

ok bool required
user object

This tool calls: #

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