CallHandler invokes a client-side JavaScript function registered by the app developer. Where CallTool crosses the network to your server, CallHandler runs instantly in the browser — ideal for state transformations like constraint enforcement, computed fields, or domain-specific logic that doesn’t need server involvement.
js_actions on PrefabApp. See Custom Handlers for how to write and register them.
Passing Arguments
Usearguments to pass extra data to the handler. Values support {{ }} interpolation, so you can pass client state at call time:
ctx.arguments:
Handling Results
The handler’s return value is available as$result in on_success callbacks, just like CallTool:
on_error fires with the error message in $error.
Combined with Other Actions
ChainCallHandler with other actions in a list:
API Reference
Protocol Reference
CallHandler