generate_hook
Create a TypeScript React hook for any @appolabs/appo SDK feature, with types, error handling, and loading states. Choose from push, biometrics, camera, location, and more.
Instructions
Generate a custom React hook for an @appolabs/appo SDK feature. Returns TypeScript code with types, error handling, and loading states.
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": {
"feature": "<feature>"
},
"name": "generate_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature | Yes | The SDK feature to generate a hook for | |
| hookName | No | Custom hook name (optional, defaults to use{Feature}) | |
| includeError | No | Include error state management (default: true) | |
| includeLoading | No | Include loading state management (default: true) |