Get hook details
get_hookRetrieve complete documentation for any @reactuses/core React hook, including usage examples and API tables, to implement the correct hook in your code.
Instructions
Fetch full documentation (description, usage example, API table) for a specific @reactuses/core React hook by name.
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": {
"hook_name": "<hook_name>"
},
"name": "get_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hook_name | Yes | Hook name, e.g. "useToggle", "useClipboard". Case-insensitive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | Yes | Auto-generated API table (arguments, returns) | |
| url | Yes | ||
| body | Yes | Markdown body of the hook documentation (usage, examples, notes) | |
| name | Yes | ||
| category | Yes | ||
| description | Yes |