hook_function
Create and inject a JavaScript function hook in a single call, combining creation and injection for efficiency.
Instructions
Create and inject a hook in one call. Convenience wrapper around create_hook + inject_hook.
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>",
"targetExpr": "<targetExpr>",
"capture": "<capture>"
},
"name": "hook_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| targetExpr | Yes | ||
| capture | Yes | ||
| target | No |