prepopulate_fair_draft
Generate an AS9102 FAIR draft from a Kiln evidence case, pulling case and registry data into the forms so the draft starts populated for review.
Instructions
Pre-populate an AS9102 FAIR draft from a Kiln evidence case.
Needs Kiln Enterprise.
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": {
"evidence_case_id": "<evidence_case_id>"
},
"name": "prepopulate_fair_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Optional identity of the physical article: ``serial_number``, ``manufacturing_process_reference``. ``unit.serial_number`` is what lets Form 3 rows and hardware insertion records attach. | |
| organization | No | Optional organization identity: ``organization_name``, ``supplier_code``. | |
| use_registry | No | When ``True`` (the default), also read the local attested identity registry for values not passed inline. ``False`` uses only the inline inputs. Default: true. | |
| order_context | No | Optional order context: ``purchase_order_number``. | |
| part_identity | No | Optional customer part identity: ``customer_part_number``, ``customer_part_name``. Omitted, the registry answer is used when ``use_registry`` is on; otherwise the field stays missing. | |
| export_formats | No | Optional file exports to write beside the csv: ``"pdf"`` and/or ``"xlsx"`` (``"excel"`` means ``"xlsx"``), as one string or a list; other values are ignored. Omitted, no files are written. A failed export is reported in ``export_errors`` and never fails the draft. | |
| fai_declaration | No | Optional FAI type declaration: ``fai_type`` ("full" or "partial"), ``baseline_part_number``, ``reason``. | |
| output_form_set | No | The numbering the markdown uses: ``"9102C"`` (default) or ``"9102B"``, case-insensitive. Any other value is refused with ``INVALID_FORM_SET``. Default: "9102C". | |
| evidence_case_id | Yes | Required. The configuration evidence case (from ``manage_supplier_document_evidence`` ``create_case``) the draft is built from. | |
| form2_row_inputs | No | Optional list of Form 2 row inputs, one object per attached document revision: ``{"revision_id", "specification_number", "process_code"}``. |