call
Read or modify Persephone's live object model by path to control pages, editors, files, boards, Git, and windows; omit the path to get an overview.
Instructions
Persephone (developer notepad: tabbed pages, editors, scripting) — read or act on its live object model by PATH. Start with no path to see the overview; every result comes with a hint listing what is under it, so you can discover everything from here without any guide.
Examples: (no path) → the overview: every top-level area, what it is for, and an example path path: "pages" → open pages (tabs), each with an index and id path: "page.content" → text of the active page path: "pages[0].content", value: "..." → replace a page's text path: "pages.showPage", args: [""] → activate a page path: "pages[0].editor.rowCount" → rows in a grid page path: "helpSearch", args: ["add rows"] → find where something lives path: "pages[0].$help" → long-form help for a node; safe on ANY path (a plain value returns its value, a method its signature) path: "windows" → all windows; prefix any path with windows[i]. to target one (default: the main window)
path: "main" -> main-process diagnostics and gated scripting path: "main.script.execute" -> settings-gated main-process code execution windows[i].main is invalid: main is process-wide; use root path "main".
Paths use the same names as the scripting API. Put method arguments in args and assignments in value; the path itself takes only short JSON literals like pages[2] or pages["id"]. An unknown member returns the valid member list instead of failing.
To CALL a method, pass args — even when it takes none: args: []. A method path with no args only describes the method (writing the parentheses in the path, e.g. "boards.list()", calls it too).
Optional tips may appear as separate non-blocking suggestions; they are not commands.
A kind's member list is sent once per session, so a long session stops repeating it. Calling with NO path RESETS that memory as well as returning the overview — do it whenever you have lost the earlier hints (after a context compaction, for instance) and the member lists will be sent again. <path>.$help gives the same detail for one node at any time.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments for the last segment when it is a method (JSON array). Use this for strings with quotes/newlines or any non-trivial value. | |
| path | No | Path into the object model; omit for the overview. | |
| hints | No | auto (default): the member list for each kind of object is sent once per session, live children always; always: repeat member lists; never: no hints. | |
| value | No | Assign this value to the property named by the last segment (e.g. page.content). Mutually exclusive with args. | |
| maxLength | No | Bound string or structured results (default 20000); truncated results carry totalLength for strings or shown/total for collections. An image result (e.g. a screenshot) is returned whole. | |
| timeoutMs | No | How long to wait for a call under pages[i].editor.app — a board's or a web page's own model. Raise it for an operation you know is slow (default 30000). It has no effect on any other path. | |
| windowIndex | No | Target window index (from windows). If omitted, uses the first open window. Use windows[i].open() to reopen closed windows first. | |
| allowNavigation | No | Return { navigated: true } if a page-model method call under pages[i].editor.app loses its document during invocation. Applies only to a page-model method call under pages[i].editor.app. |