This document provides a comprehensive list of core commands available in Orca. These commands control various aspects of the application, including theme management, navigation, panel operations, layout, and more. Each command can be triggered through the command palette or keyboard shortcuts configured in the settings.
Commands are invoked by calling the orca.commands.invokeCommand function. Commands that operate inside an editor are documented in Core Editor Commands.
core.global.toggleWindow
core.global.quickNote
core.toggleThemeMode
core.openSidebar
core.closeSidebar
core.toggleSidebar
core.sidebar.goFavorites
core.sidebar.goTags
core.sidebar.goPages
core.closePanel
core.closeOtherPanels
core.switchToNextPanel
core.switchToPreviousPanel
core.goBack
core.goForward
core.goToday
core.goYesterday
openAside: boolean (optional) - If true, opens in a new panelcore.goTomorrow
openAside: boolean (optional) - If true, opens in a new panelcore.openTodayInPanel
core.closeWindow
core.quitApp
core.openSettings
core.openSearch
core.openCommandPalette
core.openWebViewModal
url: string (optional) - The URL to load in the WebViewcore.checkForUpdates
core.openPluginMarketplace
core.openRepoSwitcher
core.notify
type: "info" | "success" | "warn" | "error" - The notification typemessage: string - The notification messagetitle: string (optional) - The notification titleactionCommand: string (optional) - The command to invoke when the notification action is clickedThese commands copy the current editor selection into Orca's clipboard buffer so that a following paste command (for example core.editor.pasteAsMove or core.editor.pasteAsCopy) can reuse it. They are plain commands, not editor commands: they take no editor context argument, they operate on the active panel, and they are not undoable.
core.editor.copySelection
core.editor.copySelectionForMove
core.panel.showRecents
core.panel.toggleLock
id: string (optional) - Panel ID, defaults to active panelcore.panel.toggleWideView
id: string (optional) - Panel ID, defaults to active panelcore.panel.toggleMaximize
id: string (optional) - Panel ID, defaults to active panelcore.panel.split
core.assets.cleanUnused
core.rebuildIndex
core.rebuildAllBlocksIndexText
core.s3.sync
interruptive: boolean (default: true) - Shows interactive dialogsinitial: boolean (default: false) - Initial sync flagfollowMouse: boolean (default: true) - Position dialogs near mouse cursorcore.layout._default
Additional layout commands are dynamically registered based on saved layouts in settings.
core.enableInteractivePreview
These commands are meant for AI agents (the in-app assistant's call_commands tool and the MCP invoke_commands tool). They take arguments, so they are not listed in the command palette, and they can return data to the caller.
core.ai.getBlocks
get-blocks backend call: nothing is stored in the editor's state and no undo step is created.blockIds: number | number[] (required) - The blocks to read.opts: object (optional)
maxBlocks: number (default: 500, at most: 1000) - How many block IDs are read per call.includeContent: boolean (default: false) - Also return the raw content fragments (debugging aid; far more verbose).{
"success": true,
"count": 1,
"blocks": [
{
"id": 1000,
"type": "heading",
"text": "Title",
"parent": 999,
"children": [1001],
"aliases": ["/pages/title"],
"tags": ["Project"],
"links": [1002],
"properties": {
"Status": "done",
"_repr": { "type": "heading", "level": 2 }
}
}
],
"missingIds": [123],
"truncated": false
}
properties keeps _repr (the block's type and its type-specific fields). Values stay structured (Date → ISO string).text, children, aliases, tags, links and properties only appear when the block has them.text is the block's own text plus its tag property values; a property that points at a block contributes the target block ID.links are the targets of inline references.missingIds lists requested IDs that have no block, truncated is set when the input was cut to maxBlocks.{ "success": false, "error": "…" } instead of a failed command.block and journal panels have an editor, so run it in one of those (otherwise the caller gets skipped / panel_has_no_editor).