get_user_id_by_name
Fetch a Discord user ID by username or nickname within a server to format mentions using <@id>.
Instructions
Get a Discord user ID by username or nickname in a server for mention formatting (<@id>)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"username": "<username>"
},
"name": "get_user_id_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guildId | No | Discord server ID (defaults to DISCORD_GUILD_ID) | |
| username | Yes | Username or nickname (e.g. "username" or "username#discriminator") |