attach_sharepoint_document
Attach a SharePoint document to an Onplana project workspace as a LINK reference (externalProvider=SHAREPOINT). The file stays in SharePoint; Onplana stores only the URL + metadata. No file is downloaded or copied in V1 (security stance). Caller must have read access to the SharePoint site. siteId comes from list_sharepoint_sites; driveItemId, and driveId for a file outside the default library, come from list_sharepoint_files.
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": {
"projectId": "<projectId>",
"siteId": "<siteId>",
"driveItemId": "<driveItemId>"
},
"name": "attach_sharepoint_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | ||
| driveId | No | SharePoint library id (from list_sharepoint_files) when the file is not in the default library of the site. | |
| libraryId | No | Onplana document library in the project to attach into. Defaults to the first library of the project. | |
| projectId | Yes | ||
| driveItemId | Yes |