Runtime settings
Every key in the settings object on a Lunnoa agent JSON file.
settings is optional. A key you include is written. A key you leave out is left as stored. pull writes every key. Defaults below are what a new agent gets before you set them.
Ranges are what push accepts. See The agent file for the rest of the JSON file.
A normal chat from an app, or a Message Agent step, allows 10 model rounds. Build chat allows 4. Long-horizon mode raises that cap. A TypeScript defineAgent does not set settings. A later TypeScript deploy leaves them as they are.
Sampling and the chat loop
| Key | Range | Default | What it does |
|---|---|---|---|
temperature | 0 to 2 | 1 | Randomness. Lower is more focused. |
topP | 0 to 1 | 1 | Nucleus sampling. |
maxOutputTokens | 1 to 4095, or null | unset | Cap on tokens in one reply. null clears it. |
frequencyPenalty | 0 to 2 | 0 | Reduces repeated phrases. |
presencePenalty | 0 to 2 | 0 | Encourages new topics. |
seed | integer, or null | unset | Fixed sampling seed. null clears it. |
maxRetries | 0 or more | 0 | Retries after a failed model call. |
maxToolRoundtrips | 0 or more | 5 | Tool loops stored on the agent. The chat cap above still applies. |
messageLookbackLimit | 0 to 100 | 40 | How many previous messages are sent to the model. |
taskNamingInstructions | string up to 1000 characters, or null | unset | How new tasks are named. |
suggestedPrompts | list of strings | empty | Welcome prompts, in this order. |
Built-in provider tools
enabledBuiltInTools is a list of tool ids. An empty list means every built-in tool for that provider is on.
| Provider | Ids |
|---|---|
| OpenAI | web_search, code_interpreter, file_search, dalle |
| Anthropic | web_search, computer_use, text_editor, bash |
| Gemini | google_search, code_execution, structured_outputs |
| Perplexity | citations, grounded_search |
A tool the model does not support is ignored by the provider.
Platform tools
enabledPlatformTools is a list of Lunnoa tool ids. An empty list means none of them. These tools mostly help Build chat. They do not edit a workflow.
| Id | What it does | Also needs |
|---|---|---|
search_available_actions, list_available_actions | Find workspace app actions | dynamicActionDiscoveryEnabled |
search_available_mcps | Find MCP servers the user can access | dynamicMcpDiscoveryEnabled |
propose_agent_instructions, propose_instruction_addition, propose_instruction_section_update | Draft or edit instructions | The full rewrite needs dynamicSelfInstructionsEnabled |
search_attached_knowledge, propose_knowledge_attach | Search or propose notebooks | |
search_available_skills, propose_skill_attach | Find or propose skills | |
propose_suggested_prompts | Propose welcome prompts | |
propose_drive_mount, drive_save_file, drive_list_recent, drive_read_file, drive_share_link, drive_save_generated_file | Drive folder and files | A drive mount for the file tools. See Capabilities. |
remember_fact, recall_relevant_memories | Store and search memories | memoryEnabled |
plan_write_todos, plan_update_todo | Runtime plan | enablePlanning. Long-horizon mode turns planning on. |
search_available_triggers and propose_agent_trigger are leftovers. They do nothing useful. Triggers belong on a workflow.
Discovery
| Key | Default | What it does |
|---|---|---|
dynamicActionDiscoveryEnabled | on | Index workflow-app actions so the agent can propose them. |
dynamicMcpDiscoveryEnabled | on | Index MCP servers the user can access. |
dynamicSelfInstructionsEnabled | on | Let the agent propose a new instruction document. The user applies it in chat. |
A new agent created from a file that omits these three starts with them off. pull then writes the stored values. Any one of them being on blocks shares and a public link. See Capabilities.
Tool behaviour
| Key | Default | What it does |
|---|---|---|
enabledToolPolicies | empty-retrieval-fallback and narrow-on-tool-loop | empty-retrieval-fallback tells the model to say when a notebook search found nothing. narrow-on-tool-loop narrows tools after a repeated loop. |
forcedTools | [] | { "toolName", "mode" } with mode of first-turn or every-turn. |
enablePlanning | off | Planning tools. |
requirePlanApproval | off | Heavy tools wait until the user approves the plan. |
enableToolResultOffload | off | Park oversized tool results. |
toolResultOffloadThresholdBytes | 16384 | 1024 to 2,000,000. |
longHorizonMode | off | Raises the step budget, and turns planning and offload on. |
longHorizonMaxSteps | 50 while long-horizon is on | 11 to 100, or null for the default of 50. |
longHorizonMaxTokensPerRun | unset | Soft token budget, 1 or more, or null. |
Memory
The file stores the policy. The facts stay in Lunnoa and are not in the file.
| Key | Default | What it does |
|---|---|---|
memoryEnabled | off | Remember and recall facts. |
memoryScope | PER_USER_PER_AGENT | PER_USER, PER_AGENT, or PER_USER_PER_AGENT. |
memoryRetentionDays | 90 | 1 to 3650. |
Privacy and channels
| Key | Default | What it does |
|---|---|---|
piiRoutingMode | INHERIT | INHERIT, AUTO_FALLBACK, ASK, BLOCK, or ANONYMIZE. |
piiFallbackConnectionId | unset | AI connection used when routing falls back. null clears it. |
piiFallbackModelId | unset | Model used when routing falls back. null clears it. |
webAccess | no row | true or false sets web search. null removes the row. |
phoneAccess | no row | true or false sets outbound calls. null removes the row. |