get_icon
Retrieve the exact import statement and icon record for a known icon name and provider, ensuring version-correct code without guesswork.
Instructions
Get the full record and exact import statement for an icon whose name is already known, e.g. Trash2 from lucide.
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": {
"name": "<name>",
"provider": "<provider>"
},
"name": "get_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Icon name or import name, e.g. "trash-2" or "Trash2" | |
| version | No | Package version or range; defaults to the project's version | |
| provider | Yes | Provider id or npm package, e.g. "lucide" or "lucide-react" |