ERP: Attach document
erp_attach_documentAttach one of the caller's own documents to an assignment. The document is COPIED into the company's storage under that task — the personal original stays personal and untouched, and the copy is visible to everyone who can see the task. Name the document by its id from list_documents; upload it first with upload_document_base64 if it is not there yet. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"assignment_id": "<assignment_id>",
"project_id": "<project_id>",
"document_id": "<document_id>"
},
"name": "erp_attach_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| document_id | Yes | ||
| assignment_id | Yes |