Import an existing document
import_documentReads the user's existing document from a public URL, pasted text, or a file (base64; PDF, DOCX, HTML, Markdown or TXT, up to 8 MB). Returns its outline, facts found (emails, return periods, governing law), suggested answers and findings (missing topics, outdated clauses). Saves nothing to the document yet: then call apply_import.
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": {
"type": "<type>"
},
"name": "import_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| text | No | ||
| type | Yes | ||
| filename | No | ||
| file_base64 | No |