Recuperar PDF de etiqueta existente
recover_label_pdfRecupera o PDF de uma pré-postagem já confirmada, a partir do supportCode da tentativa devolvido por generate_label. Use quando não tiver o prepostagemId ou não souber se a emissão terminou; com o prepostagemId em mãos, use get_label_pdf. Não cria etiqueta nem refaz emissão e cobre só emissões feitas por este MCP. Mantém controles de acesso e limites do download existente.
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": {
"supportCode": "<supportCode>"
},
"name": "recover_label_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | No | Ignorado no servidor autenticado; a credencial determina a loja. | |
| supportCode | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why the PDF wasn't returned. | |
| status | No | Correios status/business message, when the label isn't printable. | |
| actionUrl | No | When set (e.g. reason=subscription_required), send the merchant here to finish setup. | |
| labelPdfUrl | No | Clickable link to download the label PDF — share this with the merchant/customer in chat. | |
| supportCode | No | ||
| prepostagemId | No | The pré-postagem id the PDF belongs to. | |
| labelPdfBase64 | No | Base64-encoded label PDF, once ready. | |
| journalUnavailable | No |