Get a spec file
getSpecFileRetrieve the contents of a specific file within a Postman API specification using its spec ID and file path.
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. |