Hi Anna team,
I’m building an Anna App called Form Memory Filler. The app has a bundled Tool Executa called Form Memory Store. The UI calls the tool through AnnaAppRuntime.connect() and anna.tools.invoke(...).
The tool is supposed to save user-approved memory cards into Anna Persistent Storage KV.
Current flow:
Anna App UI
→ anna.tools.invoke
→ bundled Tool Executa: Form Memory Store
→ storage/get or storage/set reverse RPC
→ Anna APS KV
The tool call reaches the Executa, but saving memory fails with:
Memory could not be saved:
{
'code': 'APS_NOT_CONNECTED',
'message': 'Anna APS storage is not connected or not granted. Please update/reinstall the app and allow persistent storage permission for Form Memory Store.',
'details': {
'host_code': -32021,
'host_message': 'storage_token missing — host did not authorize storage for this invoke',
'host_details': {
'errorCode': 'STORAGE_NOT_GRANTED'
}
}
}
The issue seems to be that Anna never shows the Persistent Storage permission prompt for this bundled Executa, unlike the Files via Executa APS example.
My Form Memory Store runtime manifest returned by describe includes:
{
"name": "form-memory-store",
"display_name": "Form Memory Store",
"version": "0.1.0",
"description": "Stores and retrieves user-approved reusable memory cards for Form Memory Filler.",
"host_capabilities": ["storage.user", "aps.kv"],
"storage": {
"scopes": ["user"],
"keys": ["memory/cards.v1"]
},
"tools": [
{
"name": "get_memory",
"description": "Return all approved memory cards for the current user and Form Memory Filler app.",
"parameters": []
},
{
"name": "save_approved_memory",
"description": "Save only memory cards explicitly approved by the user.",
"parameters": [
{
"name": "items",
"type": "array",
"required": true
}
]
},
{
"name": "list_memory",
"description": "Return saved memory cards in a user-friendly preview format.",
"parameters": [
{
"name": "category",
"type": "string",
"required": false
}
]
},
{
"name": "delete_memory_item",
"description": "Delete one saved memory item by ID.",
"parameters": [
{
"name": "id",
"type": "string",
"required": true
}
]
}
]
}
The initialize response includes:
{
"protocolVersion": "2.0",
"serverInfo": {
"name": "form-memory-store",
"version": "0.1.0"
},
"capabilities": {
"storage": {
"kv": true,
"scopes": ["user"]
}
}
}
The app manifest uses bundled Executas:
{
"schema": 2,
"permissions": ["tools.invoke", "storage.read", "storage.write"],
"required_executas": [
{
"tool_id": "bundled:form-memory-store",
"version": "latest"
}
],
"ui": {
"host_api": {
"tools": ["required:bundled:form-memory-store"]
}
}
}
The installed/generated tool ID is:
tool-ervhint-form-memory-store-nrbjrzf3
I also tried adding this to the Executa Hub JSON editor manifest:
"host_capabilities": ["storage.user", "aps.kv"],
"storage": {
"scopes": ["user"],
"keys": ["memory/cards.v1"]
}
I rebuilt the binary and updated the binary distribution, but the app still does not show the Persistent Storage permission prompt. The tool is invoked, but APS reverse RPC fails because no storage_token is provided.
Questions:
- For a bundled Tool Executa that uses APS KV through
storage/getandstorage/set, what exacthost_capabilitiesshould be used? - Should it be
aps.kv,storage.user, or both? - Where does the platform read storage permission metadata from: Executa Hub JSON editor,
describe,initialize, app manifest, or server-side Executa row? - How should I trigger or enable the Persistent Storage grant for this bundled Executa?
- Is
UserExecuta.custom_config.storage_grant.scopes = ["user"]supposed to be exposed in the dashboard for bundled Executas? - Is APS KV supported through
anna.tools.invokefrom an Anna App UI for bundled Executas, like the APS Files example? - Is there a working APS KV bundled Executa example similar to
anna-app-aps-files-demo?
Reference I compared against:
https://github.com/whtcjdtc2007/anna-executa-examples/tree/main/examples/anna-app-aps-files-demo
That example triggers the Persistent Storage permission prompt for aps.files, but my APS KV Executa does not seem to trigger a prompt.
Any guidance would be appreciated. I can share the app ID / tool ID / logs if helpful.
Extra Details To Include
App name: Form Memory Filler
Memory tool ID: tool-ervhint-form-memory-store-nrbjrzf3
Storage key: memory/cards.v1
Scope: user
Reverse RPC methods used: storage/get, storage/set
Distribution: binary
Running environment: Anna web/platform, not local dev
Also attach screenshots of:
- the
STORAGE_NOT_GRANTEDerror

