lib_footprint_update_document_source
Replace a library footprint's entire source in EasyEDA. This overwrites irreversibly, so read and save the current source first.
Instructions
Replace a library footprint's entire source. IRREVERSIBLE: no undo, and no backup snapshot is taken (library assets are not documents). Read and save the current source first (lib_footprint_open_in_editor + document_save_to_file). The footprint must live in a library you can write to (personal/team/project). Returns boolean success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | No | Target EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances. | |
| libraryUuid | Yes | Library UUID containing the footprint (see lib_get_project_library_uuid / lib_get_personal_library_uuid) | |
| footprintUuid | Yes | Footprint UUID | |
| documentSource | Yes | New footprint source (same format document_get_source returns for the open footprint) |