nexus_check_artifact_exists
Check if a component or exact version already exists in a repository. Use as a CI pre-flight guard to avoid re-publishing artifacts.
Instructions
Check whether a component (optionally at an exact version) already exists in a repository. Pass version for an exact match; omit it to check whether any version of the component exists. Handy as a CI pre-flight guard to skip re-publishing an artifact that's already there.
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": {
"repository": "<repository>",
"name": "<name>"
},
"name": "nexus_check_artifact_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name to match | |
| group | No | Optional group filter (Maven groupId, etc.) | |
| format | No | Optional component format filter | |
| version | No | Optional exact version to check. Omit to check for any version of this component. | |
| repository | Yes | Repository to search within |