get_paper_code
Retrieve linked code repositories, project pages, and Hugging Face models, datasets, and spaces for a paper on Papers with Code using its arXiv ID or other identifier.
Instructions
Get linked code repositories, project pages, and Hugging Face artifacts on Papers with Code.
Returns arxiv_id, pwc_url, has_official_implementation,
repository_count, repositories (official first, then by stars),
repositories_truncated, project_pages, hf_models, hf_datasets,
hf_spaces, and hf_artifact_counts. Shares one cached record with
get_paper_catalog (calling both costs one request).
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": {
"identifier": "<identifier>"
},
"name": "get_paper_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | arXiv ID (bare, arXiv:, or URL), or a DOI/PMID/PMCID/OpenAlex work ID resolved to arXiv via OpenAlex. | |
| force_refresh | No | Bypass the local cache and re-fetch from upstream. | |
| max_repositories | No | Repositories to return, official first, then by stars. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||