download_artifact
Fetches a Maven artifact from a remote repository into the local analysis cache so other tools can inspect it. Specify coordinates and options; use the version keyword to retrieve the newest release.
Instructions
Download an artifact from the remote repository into the local analysis cache so every other tool can inspect it. Use 'latest' as the version to fetch the newest release.
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": {
"group_id": "<group_id>",
"artifact_id": "<artifact_id>",
"version": "<version>"
},
"name": "download_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Re-download even when the file is already cached | |
| version | Yes | Version to download, or 'latest' for the newest release | |
| group_id | Yes | Maven group ID | |
| classifier | No | Download a specific classified jar instead of the main one | |
| artifact_id | Yes | Maven artifact ID | |
| include_javadoc | No | Also download the javadoc jar when published | |
| include_sources | No | Also download the sources jar when published |