API Reference#
This section provides detailed documentation for all APIs available in the Paramus Extension Framework.
Core Classes#
Host Process#
API Classes#
ExtensionRegistry#
MessageTerminal#
UIBridge#
JSON-RPC Methods#
The following JSON-RPC methods are available through the host process. All methods use the current copilot.* naming convention:
API Documentation Methods#
api.describe
- Get comprehensive documentation for all extension classes
Test Methods#
copilot.test.hello
- Print hello world message from UI test classcopilot.test.run
- Execute UI test class run method
Core Test Methods#
core.test.hello
- Print hello world message from core test classcore.test.run
- Execute core test class run method
Terminal Methods#
copilot.sendmessage.terminal
- Send message to terminal with full control optionscopilot.quicksend.terminal
- Quickly send message to terminal without WebSocket waiting
UI Control Methods#
copilot.trigger.button
- Trigger any UI button by its IDcopilot.trigger.new
- Trigger the ‘new’ button in the UIcopilot.trigger.sync
- Trigger file tree synchronizationcopilot.send.notification
- Show notification popup to the usercopilot.update.element
- Update DOM element properties dynamically
Alternative UI Methods (Equivalent functionality)#
copilot.ui.trigger.button
- Alternative tocopilot.trigger.button
copilot.ui.trigger.new
- Alternative tocopilot.trigger.new
copilot.ui.trigger.sync
- Alternative tocopilot.trigger.sync
copilot.ui.send.notification
- Alternative tocopilot.send.notification
copilot.ui.update.element
- Alternative tocopilot.update.element
Method Parameters#
Terminal Methods#
copilot.sendmessage.terminal
:content
(string, required): The message content to sendwait_for_ws
(boolean, optional, default: true): Whether to wait for websocket connectionretry_interval
(float, optional, default: 1.0): Retry interval for websocket connection
copilot.quicksend.terminal
:content
(string, required): The message content to send
UI Control Methods#
copilot.trigger.button
:button_id
(string, required): The ID of the button to trigger
copilot.send.notification
:message
(string, required): The notification message to display
copilot.update.element
:element_id
(string, required): The ID of the element to updateproperty
(string, required): Property to update (textContent, innerHTML, value, style)value
(any, required): New value for the property