Get a generated file
get_artifactGet one generated file of any type, by a path from list_artifacts. Use it for this service's contracts, and also for a dependency's contracts (its asyncapi.yaml or openapi.yaml) before writing code that calls or consumes it. If hasDraftChanges is true, tell the user there are unsaved edits in microservice.md that are not included.
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": {
"service_id": "<service_id>",
"path": "<path>"
},
"name": "get_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A file path from list_artifacts, for example `openapi.yaml` or `proto/service.proto`. Any other path returns an error. | |
| version | No | A saved version number. Defaults to the last saved version. A version that doesn't exist returns an error. | |
| service_id | Yes | The service's catalog ID, from the repo's **Catalog ID:** line or from list_services. |