project_sync
Synchronizes a user project with the central datasheet store: links and copies missing datasheet PDFs, organizes files by layout, imports new PDFs, and assigns inbox PDFs to matching parts.
Instructions
Synchronize the user project with the central store: add the documents that the store links to the project parts, copy the missing copies into the project folder, move the copies into the subfolders of the layout, and import the new PDF files of the folder. A new file gets a part only from the store; for a different file the result proposes a part, and project_add_part assigns it. The inbox (the folder _inbox in the folder of the copies) is for the PDF files that the user downloads: sync gives each one to the project parts that it agrees with (the MPN, the base part and the manufacturer of the datasheet) and that have no datasheet, and takes it from the inbox. For a file with no part, ask the user for the part, then assign it with project_add_part. Gives the changes and the problems.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "project_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A folder of the user project (default: the working folder of the server). The project file datasheet-lens.toml is in it or in a parent folder. | |
| restore | No | True: copy a changed copy again from the store (the file in the folder is replaced). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |