create_part
Build a library part from a datasheet: numbered pins with names/types, package string or custom footprint from land-pattern pads, MPN and suppliers. Existing IDs need replace.
Instructions
Create a library part from a datasheet you have read: pins by number with names and types, a footprint string (sot23_5, 0402), MPN, suppliers. When no string fits, package { "file": "footprint.yaml" } with footprint_file pads copied from the datasheet land pattern (never estimated). datasheet (url, file, title) e.g. { "url": "https://example.com/ds.pdf", "title": "TJA1051 datasheet" }; pin table pages go to attach_datasheet. An existing id is refused unless replace. The part starts NOT verified: tell the human to check verification.md.
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": {
"id": "<id>",
"title": "<title>",
"package": "<package>",
"pins": "<pins>"
},
"name": "create_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | e.g. AP2112K-3.3 | |
| mpn | No | Full orderable number | |
| pins | Yes | e.g. { "1": { "name": "VIN", "type": "power_in" } }, or text, "1 VIN power_in" per line. A repeated name (a tab) is addressed as pin<n> | |
| model | No | For simulate (guide { topic: "modules" }) | |
| title | Yes | ||
| package | Yes | e.g. sot23_5, soic8, or { "file": "footprint.yaml" } | |
| replace | No | ||
| datasheet | No | Only url, file, title | |
| suppliers | No | e.g. { "lcsc": "C51118" } | |
| description | No | ||
| manufacturer | No | ||
| footprint_file | No | Pads in mm, y up, origin at the centre |