Find fields in the PDF
detect_fieldsReads a DRAFT agreement's PDF for the fields it asks for: text anchors such as {{signature:key}}, DocuSign-style tags such as \s1, the PDF's own form fields, and printed labels such as "Signature: ____". Says which fields it would place for which recipient, and lists every tag it could not use (with its page) so the person can fix it. A suggestion only: nothing is saved, and the person places or accepts fields in the console. Refuses anything that is not a draft, and an anchor naming a role no recipient has.
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": {
"agreementId": "<agreementId>"
},
"name": "detect_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agreementId | Yes |