artifact-resolve
Resolve a Minecraft version, JAR, coordinate, workspace, or dependency to a reusable source artifact ID that other tools can target.
Instructions
Resolve a version, jar, coordinate, workspace or dependency target to a source artifact. Reuse result.artifact.artifactId in other tools as target {"kind":"artifact","artifactId":"..."}. The resolution options live only on this tool. Example: {"target":{"kind":"version","version":"1.21.10"}}
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": {
"target": "<target>"
},
"name": "artifact-resolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | summary | |
| target | Yes | Fields per kind (?=optional): version: version,projectPath?,scope?; jar: jarPath; coordinate: coordinate; workspace: projectPath,scope?; dependency: group,name,dependencyVersion|projectPath. Other fields rejected. | |
| mapping | No | ||
| strictVersion | No | Fail instead of serving another version's source. | |
| allowDecompile | No | ||
| gradleUserHome | No | ||
| sourcePriority | No | ||
| preferProjectVersion | No | Use the Minecraft version of target.projectPath instead of target.version. |