export_agent
Export agent configurations to JSON files for backup, sharing, or migration. Save locally or upload to XBackbone storage.
Instructions
Export an agent's configuration to a JSON file and optionally upload it. Use import_agent to recreate the agent later, or clone_agent for a quick copy. Use list_agents to find agent IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The ID of the agent to export. | |
| output_path | No | Optional: Path to save the exported JSON file (e.g., my_agent.json). Defaults to agent_{agent_id}.json. | |
| return_base64 | No | Optional: If true, return the JSON content as base64 string in the response. Defaults to false. | |
| upload_to_xbackbone | No | Optional: If true, upload the exported file to XBackbone. Defaults to false. | |
| xbackbone_url | No | Optional: URL of the XBackbone instance. Uses XBACKBONE_URL environment variable if not provided. | |
| xbackbone_token | No | Optional: Token for XBackbone authentication. Uses XBACKBONE_TOKEN environment variable if not provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| file_path | No | ||
| agent_data | No | ||
| upload_url | No | ||
| base64_content | No |