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

KeyRangeDefaultWhat it does
temperature0 to 21Randomness. Lower is more focused.
topP0 to 11Nucleus sampling.
maxOutputTokens1 to 4095, or nullunsetCap on tokens in one reply. null clears it.
frequencyPenalty0 to 20Reduces repeated phrases.
presencePenalty0 to 20Encourages new topics.
seedinteger, or nullunsetFixed sampling seed. null clears it.
maxRetries0 or more0Retries after a failed model call.
maxToolRoundtrips0 or more5Tool loops stored on the agent. The chat cap above still applies.
messageLookbackLimit0 to 10040How many previous messages are sent to the model.
taskNamingInstructionsstring up to 1000 characters, or nullunsetHow new tasks are named.
suggestedPromptslist of stringsemptyWelcome 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.

ProviderIds
OpenAIweb_search, code_interpreter, file_search, dalle
Anthropicweb_search, computer_use, text_editor, bash
Geminigoogle_search, code_execution, structured_outputs
Perplexitycitations, 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.

IdWhat it doesAlso needs
search_available_actions, list_available_actionsFind workspace app actionsdynamicActionDiscoveryEnabled
search_available_mcpsFind MCP servers the user can accessdynamicMcpDiscoveryEnabled
propose_agent_instructions, propose_instruction_addition, propose_instruction_section_updateDraft or edit instructionsThe full rewrite needs dynamicSelfInstructionsEnabled
search_attached_knowledge, propose_knowledge_attachSearch or propose notebooks
search_available_skills, propose_skill_attachFind or propose skills
propose_suggested_promptsPropose welcome prompts
propose_drive_mount, drive_save_file, drive_list_recent, drive_read_file, drive_share_link, drive_save_generated_fileDrive folder and filesA drive mount for the file tools. See Capabilities.
remember_fact, recall_relevant_memoriesStore and search memoriesmemoryEnabled
plan_write_todos, plan_update_todoRuntime planenablePlanning. 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

KeyDefaultWhat it does
dynamicActionDiscoveryEnabledonIndex workflow-app actions so the agent can propose them.
dynamicMcpDiscoveryEnabledonIndex MCP servers the user can access.
dynamicSelfInstructionsEnabledonLet 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

KeyDefaultWhat it does
enabledToolPoliciesempty-retrieval-fallback and narrow-on-tool-loopempty-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.
enablePlanningoffPlanning tools.
requirePlanApprovaloffHeavy tools wait until the user approves the plan.
enableToolResultOffloadoffPark oversized tool results.
toolResultOffloadThresholdBytes163841024 to 2,000,000.
longHorizonModeoffRaises the step budget, and turns planning and offload on.
longHorizonMaxSteps50 while long-horizon is on11 to 100, or null for the default of 50.
longHorizonMaxTokensPerRununsetSoft token budget, 1 or more, or null.

Memory

The file stores the policy. The facts stay in Lunnoa and are not in the file.

KeyDefaultWhat it does
memoryEnabledoffRemember and recall facts.
memoryScopePER_USER_PER_AGENTPER_USER, PER_AGENT, or PER_USER_PER_AGENT.
memoryRetentionDays901 to 3650.

Privacy and channels

KeyDefaultWhat it does
piiRoutingModeINHERITINHERIT, AUTO_FALLBACK, ASK, BLOCK, or ANONYMIZE.
piiFallbackConnectionIdunsetAI connection used when routing falls back. null clears it.
piiFallbackModelIdunsetModel used when routing falls back. null clears it.
webAccessno rowtrue or false sets web search. null removes the row.
phoneAccessno rowtrue or false sets outbound calls. null removes the row.

Related