Open source CapCut alternative.
TypeScript
Allow shortcut-backed local app actions
David Le28bd4b781955
diff --git a/apps/Donkey/Sources/DonkeyAI/LocalGenerateTaskIntentAdapter.swift b/apps/Donkey/Sources/DonkeyAI/LocalGenerateTaskIntentAdapter.swiftindex c1666e0b..92974eed 100644--- a/apps/Donkey/Sources/DonkeyAI/LocalGenerateTaskIntentAdapter.swift+++ b/apps/Donkey/Sources/DonkeyAI/LocalGenerateTaskIntentAdapter.swift@@ -672,6 +672,7 @@ public struct LocalGenerateTaskIntentAdapter: TaskIntentParsingAdapter {"If Command is a question, greeting, conversation, malformed request, or lacks a real executable payload, do not invent one. Return taskType \"none\", targetAppName \"none\", empty entities and normalizedEntities, confidence 0, needsConfirmation=false, actionPlan.tools=[], and metadata.responseMode=conversation with metadata.assistantResponse containing a brief natural-language reply.","If Command is an executable local task with one ordinary missing detail, set needsConfirmation=true and include missingEntity in metadata.","If Command is executable, choose by capability and target app, not exact wording. Use only the provided task definitions; do not invent task types, unsupported entities, or actions.",+ "For play/listen media requests, treat the turn as executable when a supported play_media capability or media_playback task is available; choose Music or another supported media app, set query to the requested artist/song/album, and do not downgrade it to conversation.","If no capability fits, choose conversation with taskType \"none\" and a helpful metadata.assistantResponse rather than a failed local-action message.","For dynamic local-item capabilities, app/file/folder names may come from the request, relevant local cache, or default-app inference; the catalog will verify availability before execution.","For write/create document requests: if the requested content is malformed or not meaningful enough to type, choose conversation; do not fabricate a document payload just to make the task executable.",@@ -690,7 +691,8 @@ public struct LocalGenerateTaskIntentAdapter: TaskIntentParsingAdapter {"For local_app_interaction, set actionPlan.inputEntity to query when ui.setText should type the query, and set actionPlan.controlID/focusKey for the UI control strategy.","actionPlan must be one nested object containing tools, inputEntity, controlID, focusKey, and verification. Do not put inputEntity, controlID, focusKey, or verification at the top level.","The examples below show output structure only. Replace every example entity value with values inferred from Command and local cache; do not copy example query text unless the user asked for that exact text.",- "Media playback output shape: targetAppName=Music, entities.appName=Music, entities.goal=play media, entities.query=<artist/song/album to play>, actionPlan.tools=[app.openOrFocus, app.observe, ui.focusSearch, ui.setText, ui.pressReturn, app.verifyCommand], inputEntity=query, controlID=search, focusKey=Command+F.",+ "Media playback output shape when media_playback is provided: taskType=media_playback, targetAppName=Music, entities.query=<artist/song/album to play>, normalizedEntities.query=<artist/song/album to play>.",+ "Media playback output shape for generic local_app_interaction: targetAppName=Music, entities.appName=Music, entities.goal=play media, entities.query=<artist/song/album to play>, actionPlan.tools=[app.openOrFocus, app.observe, ui.focusSearch, ui.setText, ui.pressReturn, app.verifyCommand], inputEntity=query, controlID=search, focusKey=Command+F, metadata.appFinder.selectedCapabilityID=play_media when selected from the app finder catalog.","Example website output shape: {\"taskType\":\"local_app_interaction\",\"targetAppName\":\"Safari\",\"entities\":{\"appName\":\"Safari\",\"goal\":\"open requested website\",\"query\":\"https://example.org\"},\"normalizedEntities\":{\"appName\":\"Safari\",\"goal\":\"open requested website\",\"query\":\"https://example.org\"},\"confidence\":0.9,\"needsConfirmation\":false,\"actionPlan\":{\"tools\":[\"app.openOrFocus\",\"app.observe\",\"ui.focusAddressBar\",\"ui.setText\",\"ui.pressReturn\",\"app.verifyCommand\"],\"inputEntity\":\"query\",\"controlID\":\"addressBar\",\"focusKey\":\"Command+L\",\"verification\":\"commandAttempted\"},\"metadata\":{}}","Writing output shape: targetAppName=Notes, entities.appName=Notes, entities.goal=write requested text, entities.query=<the actual final text to type>, actionPlan.tools=[app.openOrFocus, app.observe, ui.newDocument, ui.setText, app.verifyCommand], inputEntity=query, controlID=editor.","Table output shape: targetAppName=Numbers, entities.appName=Numbers, entities.goal=create requested table, entities.query=<tab-separated rows for the requested table>, actionPlan.tools=[app.openOrFocus, app.observe, ui.newDocument, ui.setText, app.verifyCommand], inputEntity=query, controlID=editor.",@@ -961,11 +963,13 @@ public struct HostedTaskIntentParsingAdapter: TaskIntentParsingAdapter {"If Command is a greeting, conversation, question, malformed request, or lacks a real executable payload, return taskType \"none\", targetAppName \"none\", empty entities and normalizedEntities, confidence 0, needsConfirmation false, actionPlan.tools empty, and metadata.responseMode \"conversation\" with metadata.assistantResponse containing a brief natural-language reply.","For supported actions, choose only a provided taskType and target app. Fill entities and normalizedEntities with the concrete values needed by required entity rules.","Use the generic local_app_interaction task type for executable local app requests that need a model-planned app workflow and do not have a more specific provided task type.",+ "For play/listen media requests, treat the turn as executable when a supported play_media capability or media_playback task is available; choose Music or another supported media app, set query to the requested artist/song/album, and do not downgrade it to conversation.","When App finder catalog JSON is non-empty and you use local_app_interaction, choose the target app only from a catalog entry with supportStatus supported and a matching capability. Set metadata.appFinder.selectedAppID to the exact appID, metadata.appFinder.selectedCapabilityID to the capability id, and metadata.appFinder.controlProfile to one declared control profile. Never select candidate, unsupported, or denied entries for execution.","For local_app_interaction, select the most likely local app, set targetAppName and entities.appName to the human app name, set entities.goal, and when text must be entered set entities.query plus normalizedEntities.query.","For local_app_interaction, fill actionPlan.tools with allowed tools only: app.openOrFocus, app.observe, ui.newDocument, ui.focusSearch, ui.focusAddressBar, ui.focusTextEntry, ui.setText, ui.pressReturn, app.verifyCommand, app.verifyVisibleText.","When ui.setText is present, entities.query and normalizedEntities.query must be non-empty, actionPlan.inputEntity should usually be query, and actionPlan.controlID/focusKey should describe the guarded UI strategy.",- "For media playback, targetAppName=Music, entities.appName=Music, entities.goal=play media, entities.query=<artist/song/album to play>, and actionPlan.tools=[app.openOrFocus, app.observe, ui.focusSearch, ui.setText, ui.pressReturn, app.verifyCommand] with inputEntity=query, controlID=search, focusKey=Command+F.",+ "For media playback when media_playback is provided, use taskType=media_playback, targetAppName=Music, entities.query=<artist/song/album to play>, normalizedEntities.query=<artist/song/album to play>.",+ "For media playback through generic local_app_interaction, targetAppName=Music, entities.appName=Music, entities.goal=play media, entities.query=<artist/song/album to play>, actionPlan.tools=[app.openOrFocus, app.observe, ui.focusSearch, ui.setText, ui.pressReturn, app.verifyCommand] with inputEntity=query, controlID=search, focusKey=Command+F, and metadata.appFinder.selectedCapabilityID=play_media when selected from the app finder catalog.","For website navigation, choose Safari or the user's browser, set query to the URL, and use ui.focusAddressBar, ui.setText, ui.pressReturn, app.verifyCommand.","For writing in Notes, choose Notes, make query the complete text to type, and use ui.newDocument, ui.setText, app.verifyCommand.","For spreadsheet or table creation, choose Numbers, put compact tab-separated table content in query, and use ui.newDocument, ui.setText, app.verifyCommand.",diff --git a/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskAdapter.swift b/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskAdapter.swiftindex 3a689464..70613e7c 100644--- a/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskAdapter.swift+++ b/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskAdapter.swift@@ -262,6 +262,9 @@ public struct LocalAppTaskAdapter: Sendable {case .observeApp:return observation == nil ? .needsEvidence : .verifiedcase .focusControl:+ if Self.hasKeyboardFocusShortcut(step), observation?.appIsFocused == true {+ return .verified+ }if let controlID = step.metadata["controlID"],let observation,LocalAppObservationGeometry.hasNormalizedControlBounds(@@ -338,6 +341,11 @@ public struct LocalAppTaskAdapter: Sendable {}}+ private static func hasKeyboardFocusShortcut(_ step: LocalAppTaskWorkflowStepDefinition) -> Bool {+ let key = step.metadata["key"]?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""+ return !key.isEmpty+ }+private func verificationStatus(for intent: TaskIntent,observation: LocalAppTaskObservation?diff --git a/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskLiveRunner.swift b/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskLiveRunner.swiftindex 37af7ecb..f4acb247 100644--- a/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskLiveRunner.swift+++ b/apps/Donkey/Sources/DonkeyRuntime/LocalAppTaskLiveRunner.swift@@ -332,7 +332,7 @@ public struct LocalAppTaskLiveRunner: Sendable {return LocalAppTaskLiveRunResult(command: command,traceID: traceID,- status: status(for: initialActionPlan.terminalState),+ status: blockedEvidencePlanStatus(for: initialActionPlan.terminalState),resolution: resolution,initialActionPlan: initialActionPlan,observation: launchObservation,@@ -765,6 +765,17 @@ public struct LocalAppTaskLiveRunner: Sendable {}}+ private func blockedEvidencePlanStatus(+ for terminalState: LocalAppTaskTerminalState+ ) -> LocalAppTaskLiveRunStatus {+ switch terminalState {+ case .completed, .needsUserReview:+ return .needsUserReview+ case .failedSafe, .timedOut:+ return .failedSafe+ }+ }+private func decisionReason(_ decision: ActionEngineCommandDecision) -> String {switch decision {case .denied(let reason):diff --git a/apps/Donkey/Tests/DonkeyRuntimeTests/AIHarnessAdapterTests.swift b/apps/Donkey/Tests/DonkeyRuntimeTests/AIHarnessAdapterTests.swiftindex c15ee894..5b24d976 100644--- a/apps/Donkey/Tests/DonkeyRuntimeTests/AIHarnessAdapterTests.swift+++ b/apps/Donkey/Tests/DonkeyRuntimeTests/AIHarnessAdapterTests.swift@@ -390,6 +390,7 @@ struct AIHarnessAdapterTests {#expect((body["prompt"] as? String)?.contains("Use only the provided task definitions") == true)#expect((body["prompt"] as? String)?.contains("choose by capability and target app") == true)#expect((body["prompt"] as? String)?.contains("Do not include reasoning") == true)+ #expect((body["prompt"] as? String)?.contains("play/listen media requests") == true)#expect((body["prompt"] as? String)?.contains("For website navigation") == true)#expect((body["prompt"] as? String)?.contains("ui.newDocument") == true)#expect((body["prompt"] as? String)?.contains("set_text_input_contract=inputEntityValueIsExactTextToEnter") == true)@@ -534,6 +535,7 @@ struct AIHarnessAdapterTests {let instructions = try #require(parameters["instructions"] as? String)#expect(instructions.contains("local_app_interaction"))#expect(instructions.contains("media playback"))+ #expect(instructions.contains("play/listen media requests"))#expect(instructions.contains("metadata.assistantResponse"))}diff --git a/apps/Donkey/Tests/DonkeyRuntimeTests/LocalAppTaskTests.swift b/apps/Donkey/Tests/DonkeyRuntimeTests/LocalAppTaskTests.swiftindex 3503d5b5..7a36e722 100644--- a/apps/Donkey/Tests/DonkeyRuntimeTests/LocalAppTaskTests.swift+++ b/apps/Donkey/Tests/DonkeyRuntimeTests/LocalAppTaskTests.swift@@ -351,6 +351,44 @@ struct LocalAppTaskTests {#expect(commands.first?.metadata["plan.tool"] == "ui.focusSearch")}+ @Test+ func genericInteractionShortcutFocusDoesNotRequireControlBounds() throws {+ let catalog = LocalAppTaskCatalog(+ taskDefinitions: LocalAppTaskDefinitionLoader.runtimeSeedDefinitions,+ availabilityProvider: StaticLocalAppAvailabilityProvider(+ installedBundleIdentifiers: ["com.apple.Music"]+ )+ )+ let resolution = catalog.resolve(intent: genericLocalAppInteractionIntent(+ appName: "Music",+ query: "Coldplay",+ planTools: [+ .openOrFocusApp,+ .observeApp,+ .focusSearch,+ .setText,+ .pressReturn,+ .verifyCommand+ ]+ ))+ let intent = try #require(resolution.intent)+ let definition = try #require(resolution.definition)+ let plan = catalog.adapter(for: definition).evidenceBackedActionPlan(+ for: intent,+ observation: LocalAppTaskObservation(+ appIsRunning: true,+ appIsFocused: true,+ availableControls: [:],+ confidence: 0.7+ )+ )++ #expect(resolution.status == .resolved)+ #expect(plan.canExecuteGuardedActions == true)+ #expect(plan.terminalState == .completed)+ #expect(plan.steps.first(where: { $0.role == .focusControl })?.status == .verified)+ }+@Testfunc staticProviderBuildsAppFinderCatalogWithSupportAndDenyMetadata() throws {let provider = StaticLocalAppAvailabilityProvider(@@ -1050,6 +1088,143 @@ struct LocalAppTaskTests {#expect(result.workflowProgress.state(for: .verify)?.status == .completed)}+ @Test @MainActor+ func liveRunnerExecutesGenericShortcutFocusPlanWithoutControlBounds() async throws {+ let backend = RecordingLocalAppTaskInputBackend()+ let controller = FakeLocalAppTaskAppController(+ launchObservation: LocalAppTaskObservation(+ appIsRunning: true,+ appIsFocused: true,+ availableControls: [:],+ confidence: 0.7+ ),+ finalObservation: LocalAppTaskObservation(+ appIsRunning: true,+ appIsFocused: true,+ availableControls: [:],+ confidence: 0.74+ )+ )+ let catalog = LocalAppTaskCatalog(+ taskDefinitions: LocalAppTaskDefinitionLoader.runtimeSeedDefinitions,+ availabilityProvider: StaticLocalAppAvailabilityProvider(installedBundleIdentifiers: ["com.apple.Music"])+ )+ let runner = LocalAppTaskLiveRunner(+ catalog: catalog,+ appController: controller,+ actionEngineFactory: { _ in+ ActionEngineGuardrail(+ configuration: ActionEngineConfiguration(liveInputEnabled: true),+ inputBackend: backend+ )+ },+ permissionPolicy: ToolCallPolicy(deniedCapabilities: [])+ )+ let intent = genericLocalAppInteractionIntent(+ appName: "Music",+ query: "Coldplay",+ planTools: [+ .openOrFocusApp,+ .observeApp,+ .focusSearch,+ .setText,+ .pressReturn,+ .verifyCommand+ ]+ )++ let result = await runner.run(+ command: "play some cold play",+ traceID: "trace-generic-shortcut-focus",+ resolution: catalog.resolve(intent: intent),+ metadata: ["intentParser": "test-model"]+ )++ #expect(result.status == .completed)+ #expect(result.metadata["reason"] != "evidencePlanBlocked")+ #expect(result.workflowProgress.state(for: .evidencePlan)?.status == .completed)+ #expect(result.workflowProgress.state(for: .execute)?.status == .completed)+ #expect(await backend.executedKeys() == ["Command+F", "Coldplay", "Return"])+ }++ @Test @MainActor+ func liveRunnerDoesNotReportCompletedWhenEvidencePlanBlocks() async throws {+ let backend = RecordingLocalAppTaskInputBackend()+ let controller = FakeLocalAppTaskAppController(+ launchObservation: LocalAppTaskObservation(+ appIsRunning: true,+ appIsFocused: true,+ availableControls: [:],+ confidence: 0.7+ ),+ finalObservation: LocalAppTaskObservation(+ appIsRunning: true,+ appIsFocused: true,+ availableControls: [:],+ confidence: 0.74+ )+ )+ let catalog = LocalAppTaskCatalog(+ taskDefinitions: LocalAppTaskDefinitionLoader.runtimeSeedDefinitions,+ availabilityProvider: StaticLocalAppAvailabilityProvider(installedBundleIdentifiers: ["com.apple.Music"])+ )+ let runner = LocalAppTaskLiveRunner(+ catalog: catalog,+ appController: controller,+ actionEngineFactory: { _ in+ ActionEngineGuardrail(+ configuration: ActionEngineConfiguration(liveInputEnabled: true),+ inputBackend: backend+ )+ },+ permissionPolicy: ToolCallPolicy(deniedCapabilities: [])+ )+ let intent = TaskIntent(+ intentID: "local_app_interaction-no-focus-evidence",+ taskType: "local_app_interaction",+ targetApp: LocalAppTarget(appName: "Music", titleContains: "Music"),+ entities: [+ "appName": "Music",+ "goal": "play media",+ "query": "Coldplay"+ ],+ normalizedEntities: [+ "appName": "Music",+ "goal": "play media",+ "query": "Coldplay"+ ],+ confidence: 0.93,+ parserSource: .localModel,+ actionPlan: LocalAppActionPlan(+ tools: [+ .openOrFocusApp,+ .observeApp,+ .focusSearch,+ .setText,+ .pressReturn,+ .verifyCommand+ ],+ inputEntity: "query",+ controlID: "search",+ focusKey: "",+ verification: .commandAttempted+ ),+ metadata: ["requestedItemName": "Music"]+ )++ let result = await runner.run(+ command: "play some cold play",+ traceID: "trace-blocked-evidence-plan",+ resolution: catalog.resolve(intent: intent),+ metadata: ["intentParser": "test-model"]+ )++ #expect(result.status == .needsUserReview)+ #expect(result.metadata["reason"] == "evidencePlanBlocked")+ #expect(result.workflowProgress.state(for: .evidencePlan)?.status == .blocked)+ #expect(await backend.executedKeys() == [])+ }+@Test @MainActorfunc liveRunnerPublishesCoordinatorEventsForGuardedRun() async throws {let backend = RecordingLocalAppTaskInputBackend()diff --git a/docs/guides/agent-harness.md b/docs/guides/agent-harness.mdindex 7668df80..a936bc73 100644--- a/docs/guides/agent-harness.md+++ b/docs/guides/agent-harness.md@@ -241,7 +241,9 @@ continue after catalog validation confirms the target app/task, requiredentities, app availability, and safety policy. The default runtimecapabilities are generic local-item open plus generic model-planned local-appinteraction; the latter materializes a transient task definition from an-allowlisted typed `actionPlan` before execution. Weather lookup, media+allowlisted typed `actionPlan` before execution. Typed focus-control steps with+declared keyboard shortcuts may execute after the target app is focused;+pointer/control targeting still requires grounded bounds. Weather lookup, mediaplayback, and document form-fill are benchmark fixtures for tests and replayevaluation, not runtime defaults. Runtime defaults come from the SQLite-backedagent memory store, which is seeded with generic capabilities and enriched bydiff --git a/docs/guides/decision-system.md b/docs/guides/decision-system.mdindex 121b0e51..5963c6fc 100644--- a/docs/guides/decision-system.md+++ b/docs/guides/decision-system.md@@ -93,6 +93,9 @@ The catalog resolves dynamic targets through the agent memory store, Spotlight/aThe live runner then owns launch/focus, observation, evidence-backed actionplanning, guarded execution, verification, and agent visualization evidence.Accessibility and keyboard input run through action-engine guardrails.+Focus-control steps that name a keyboard shortcut, such as `Command+F` or+`Command+L`, may execute once the target app is focused; pointer-style focus+still requires grounded control bounds.AppleScript may be used only when supplied by typed task metadata or validatedgenerated artifacts; free-form planner text is never direct input.diff --git a/scripts/local-runtime-runners/donkey_runtime_runner.py b/scripts/local-runtime-runners/donkey_runtime_runner.pyindex 3dfb4fbc..f98f92ca 100644--- a/scripts/local-runtime-runners/donkey_runtime_runner.py+++ b/scripts/local-runtime-runners/donkey_runtime_runner.py@@ -792,6 +792,7 @@ def compact_task_intent_prompt("Choose appName from: " + ", ".join(app_names),"Prefer a concrete app name. Do not choose Local App when Music, Safari, Notes, or Numbers fits.","If this is not an executable local app action, set appName to none, query to empty, and confidence to 0.",+ "For play/listen media requests, choose Music when available and put the requested artist/song/album in query.",f"Command: {command}","JSON keys: appName, goal, query, confidence.","For music playback, appName is Music and query is the artist/song.",@@ -1390,6 +1391,7 @@ def task_intent_prompt("If Command is a question, greeting, conversation, malformed request, or lacks a real executable payload, do not invent one. Return taskType \"none\", targetAppName \"none\", empty entities and normalizedEntities, confidence 0, needsConfirmation=false, actionPlan.tools=[], and metadata.responseMode=conversation with metadata.assistantResponse containing a brief natural-language reply.","If Command is an executable local task with one ordinary missing detail, set needsConfirmation=true and include missingEntity in metadata.","If Command is executable, choose by capability and target app, not exact wording. Use only the provided task definitions; do not invent task types, unsupported entities, or actions.",+ "For play/listen media requests, treat the turn as executable when a supported play_media capability or media_playback task is available; choose Music or another supported media app, set query to the requested artist/song/album, and do not downgrade it to conversation.","If no capability fits, choose conversation with taskType \"none\" and a helpful metadata.assistantResponse rather than a failed local-action message.","For dynamic local-item capabilities, app/file/folder names may come from the request, relevant local cache, or default-app inference; the catalog will verify availability before execution.","For write/create document requests: if the requested content is malformed or not meaningful enough to type, choose conversation; do not fabricate a document payload just to make the task executable.",@@ -1409,7 +1411,8 @@ def task_intent_prompt("For local_app_interaction, set actionPlan.inputEntity to query when ui.setText should type the query, and set actionPlan.controlID/focusKey for the UI control strategy.","actionPlan must be one nested object containing tools, inputEntity, controlID, focusKey, and verification. Do not put inputEntity, controlID, focusKey, or verification at the top level.","The examples below show output structure only. Replace every example entity value with values inferred from Command and local cache; do not copy example query text unless the user asked for that exact text.",- "Media playback output shape: targetAppName=Music, entities.appName=Music, entities.goal=play media, entities.query=<artist/song/album to play>, actionPlan.tools=[app.openOrFocus, app.observe, ui.focusSearch, ui.setText, ui.pressReturn, app.verifyCommand], inputEntity=query, controlID=search, focusKey=Command+F.",+ "Media playback output shape when media_playback is provided: taskType=media_playback, targetAppName=Music, entities.query=<artist/song/album to play>, normalizedEntities.query=<artist/song/album to play>.",+ "Media playback output shape for generic local_app_interaction: targetAppName=Music, entities.appName=Music, entities.goal=play media, entities.query=<artist/song/album to play>, actionPlan.tools=[app.openOrFocus, app.observe, ui.focusSearch, ui.setText, ui.pressReturn, app.verifyCommand], inputEntity=query, controlID=search, focusKey=Command+F, metadata.appFinder.selectedCapabilityID=play_media when selected from the app finder catalog.",'Example website output shape: {"taskType":"local_app_interaction","targetAppName":"Safari","entities":{"appName":"Safari","goal":"open requested website","query":"https://example.org"},"normalizedEntities":{"appName":"Safari","goal":"open requested website","query":"https://example.org"},"confidence":0.9,"needsConfirmation":false,"actionPlan":{"tools":["app.openOrFocus","app.observe","ui.focusAddressBar","ui.setText","ui.pressReturn","app.verifyCommand"],"inputEntity":"query","controlID":"addressBar","focusKey":"Command+L","verification":"commandAttempted"},"metadata":{}}',"Writing output shape: targetAppName=Notes, entities.appName=Notes, entities.goal=write requested text, entities.query=<the actual final text to type>, actionPlan.tools=[app.openOrFocus, app.observe, ui.newDocument, ui.setText, app.verifyCommand], inputEntity=query, controlID=editor.","Table output shape: targetAppName=Numbers, entities.appName=Numbers, entities.goal=create requested table, entities.query=<tab-separated rows for the requested table>, actionPlan.tools=[app.openOrFocus, app.observe, ui.newDocument, ui.setText, app.verifyCommand], inputEntity=query, controlID=editor.",