apex_add_page_js
Adds inline JavaScript to a specific Oracle APEX page, with support for external JS file URLs, to activate custom client-side behaviors.
Instructions
Add inline JavaScript to a specific page.
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": {
"page_id": "<page_id>",
"javascript_code": "<javascript_code>"
},
"name": "apex_add_page_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Target page ID. | |
| js_file_urls | No | URLs of external JS files to load (newline separated). Example: "#APP_FILES#mylib.js" | |
| javascript_code | Yes | JavaScript code to add to the page. This code is placed in a script block injected via a hidden static region. Example: function showConfirm(msg) { apex.confirm(msg, {title: 'Confirm'}); } // Auto-initialize apex.jQuery(document).ready(function() { initMyPage(); }); |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |