call_api
Invoke Python JS API methods on the exposed object to interact with pywebview app internals.
Instructions
Call a js_api method directly on the Python object exposed to the page. Example: call_api("get_state") when the app exposes state via js_api.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| kwargs | No | ||
| method | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |