agent_import
Make the org's agent record match a spec: create it, or update the fields that differ (org admin). Without apply this is a dry run that lists the changes. Goes through agent.create / agent.update, so every screen and permission they apply still applies; kind cannot change.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec": "<spec>"
},
"name": "agent_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The spec as YAML or JSON text, as agent_export returns it | |
| apply | No | false (default) only returns the plan; true performs it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||