add_person
Add a person to a Gramps family tree, optionally attaching birth and death events with source citations so recorded facts stay evidence-backed.
Instructions
Create a new person, optionally with cited birth and/or death events.
Use this to add someone to the tree. Good practice: attach the birth event with a citation to the specific record that proves it (a birth or baptism certificate, a census entry), setting the citation's confidence honestly. If you only have a legacy-tree hint with no underlying record, either omit the event or set require_citation=False so it's flagged for follow-up.
Returns the new person's handle and gramps_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| birth | No | Optional birth event. Include a citation unless recording as unsourced. The event type defaults to 'Birth'. | |
| death | No | Optional death event; type defaults to 'Death'. | |
| given | Yes | Given/first name(s), e.g. 'John Robert'. | |
| gender | No | female, male, or unknown. | unknown |
| surname | No | Family name / surname. | |
| name_prefix | No | Surname prefix, e.g. 'van', 'de'. | |
| name_suffix | No | Suffix, e.g. 'Jr.', 'III'. | |
| require_citation | No | If True (default), any birth/death event MUST carry a citation or the call fails. Set False to record the event anyway, stamped with the UNSOURCED attribute so list_unsourced_facts can find it later. |