import_agent_json
Replace an agent's entire configuration by importing a JSON file or object. Use this tool to apply bulk changes to agent settings, appearance, tools, and behavior in one operation.
Instructions
Import/replace an agent's FULL configuration from a local JSON file or from a JSON object.
This is a FULL REPLACE operation — the entire agentConfig is overwritten with the provided config. For partial updates (changing just one field), use update_agent instead.
Null handling:
Fields set to null are stripped before saving (field is removed from the stored config)
Omitted fields are NOT preserved — this is a full replace, not a merge
Internal fields (model, temperature, summaryThreshold, voice.liveModel) are preserved automatically
Preferred workflow:
Use export_agent_json to save the agent config to a local file (auto-saved to ./agents/)
Edit the local file as needed
Use this tool with filePath pointing to that file to apply the changes
You can provide the config either via:
filePath: path to a local JSON file (preferred — reads the file from disk)
agentConfig: inline JSON object (fallback if no file)
If both are provided, filePath takes priority.
Requires role: owner, admin, or developer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The MongoDB ID of the agent to update. If not provided and filePath contains _agentId, that will be used. | |
| filePath | No | Path to a local JSON file with the agent config (e.g. ./agents/mar.json). Preferred over inline agentConfig. | |
| agentConfig | No | The full agentConfig object (fallback if filePath is not provided). Must include name and identity. |