create_js_objects
Create multiple JS objects for Appsmith apps by providing source code, with automatic parsing of function names and optional page assignment.
Instructions
Create multiple JS objects in one tool call. Each entry is {"name", "body", "function_names"?, "page_id"?}. body is the full source (e.g.
export default { foo: () => 1, bar: () => 2 }). If function_names is omitted,
the top-level function names in body are parsed automatically per entry. page_id
defaults to the currently open 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": {
"objects": "<objects>"
},
"name": "create_js_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes |