updateSpecFile
Update an API specification file by providing its ID and file path. Modify content, name, or type one property at a time, with a maximum file size of 10MB.
Instructions
Updates an API spec's file. Only pass one property at a time (content, name, or type). Max size 10MB.
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": {
"specId": "<specId>",
"filePath": "<filePath>"
},
"name": "updateSpecFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | Spec ID | |
| filePath | Yes | Path to the file | |
| content | No | Stringified contents | |
| name | No | File name | |
| type | No | ROOT (entry point) or DEFAULT (referenced file) |