Client capabilities
A browser client such as the SignalWire address widget declares what it can render in the user
variables it sends at dial time. The signalwire.core.capabilities module reads those
declarations so an agent can decide what to offer: whether to push content to a screen, whether to
advertise a text-handoff tool.
A capability says what the client can render. It is never permission to do anything privileged, because a caller controls its own user variables. Use these values as hints for what to offer.
Absence means no. Every function resolves errors and missing data to “not declared”, because offering a caller something they can’t reach is worse than never mentioning it: a phone caller has no screen. There is no fixed list of capability names; a client can declare a name this SDK has never seen and your application can act on it.
Functions
Return the user variables from a SWML request body.
Return the capability names the client declared as truthy.
Whether the client declared one named capability.
Example
Offer a screen-only tool to callers who can render it:
For moving a conversation between chat and a call, see HandoffRouter.