Upload a text document
air_upload_documentUpload a text document to an AIR project in one call: start the upload, send the content, finish it, and wait for AIR to read it. Returns the source and status.
Instructions
Upload a text document, such as the scan summary, to a project in one call: start the upload, send the content, finish it, and wait until AIR has read it. Returns the source and its status. For binary files, use air_upload_document_init and the related tools. Requires projects:write.
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": {
"projectPid": "<projectPid>",
"fileName": "<fileName>",
"content": "<content>"
},
"name": "air_upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| fileName | Yes | ||
| projectPid | Yes | ||
| contentType | No | text/markdown |