Skip to content

Import Tools

POST /tools/import

Create one ordinary remote_protocol row per selected remote tool (D-5354).

Each row is pinned by selected_tools to the single tool it may call, so its effect, its guardrails and any approval rule naming its slug describe exactly one remote operation. 409 when a slug is already taken: re-importing never overwrites.

FieldTypeNotes
configobjectrequired—
secrets_requiredstring[]optional—
prefixstringrequired—
scopeworkspace | organization | platform | nulloptional—
toolsToolImportSelection[]required—
StatusDescriptionBody
201Successful Response—
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/tools/import \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"config": {},
"prefix": "string",
"tools": [
{}
]
}'