octri_push_spec
Upload OpenAPI spec text in JSON or YAML as a project's current spec and return the created spec ID. Use it to set or update the active API spec via @octri/cli.
Instructions
Upload OpenAPI spec text (JSON or YAML) as the project's new current spec. Returns the created spec id.
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": {
"content": "<content>"
},
"name": "octri_push_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Raw spec text. | |
| project_id | No | Project id. Optional, falls back to the CLI's selected project. |