Br Sign Nfe
br__sign_nfeSign an unsigned NF-e/NFC-e XML with an ICP-Brasil A1 certificate, applying an enveloped XML-DSig signature to produce a valid signed document.
Instructions
Apply an ICP-Brasil enveloped XML-DSig signature to an NF-e/NFC-e XML.
Signs <infNFe> per MOC 7.0 Table 4-2 (RSA-SHA1 / SHA-1, enveloped
transform, ds:Signature appended as the last child of <NFe>) using
mcp_nfe_br.standards.nfe_signer.build_nfe_signer.
Only ICP-Brasil A1 (PKCS#12 file-based) certificates are supported.
A3 (hardware token/HSM) certificates [NEED: not modeled].
Returns a dict with xml (the signed document) or error.
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": {
"cert_path": "<cert_path>"
},
"name": "br__sign_nfe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cert_path | Yes | Caminho local para o certificado ICP-Brasil A1 (.p12/.pfx) | |
| xml_base64 | No | XML NF-e/NFC-e não assinado, codificado em base64. | |
| xml_content | No | XML NF-e/NFC-e não assinado. Informe xml_content ou xml_base64. | |
| cert_password | No | Senha do certificado A1, se houver |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||