Get a spec file
getSpecFileRetrieve the contents of any file within an API specification using its spec ID and file path. Enables direct access for review or processing.
Instructions
Gets the contents of an API specification's file.
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": "getSpecFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | The spec's ID. | |
| filePath | Yes | The path to the file. |