Create document on letterhead
create_matter_documentTypesets markdown as a PDF or DOCX on the firm's letterhead and files it in the matter's Dropbox folder. Does not overwrite. A first call returns a preview; a second call with confirm true and that preview_id applies the change. Sign-in required.
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": {
"matter_id": "<matter_id>",
"title": "<title>",
"markdown": "<markdown>"
},
"name": "create_matter_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title, printed under the letterhead. Also the file name unless file_name is given. | |
| format | No | pdf (default) or docx for an editable copy. | |
| confirm | No | false or omitted returns a preview; true applies the change identified by preview_id. | |
| markdown | Yes | Document body as markdown: headings, lists, bold/italic, quotes. | |
| file_name | No | Optional file name without extension. Fails if a file with that name already exists. | |
| matter_id | Yes | Matter identifier from find_matter or list_open_matters. | |
| subfolder | No | Optional existing folder inside the matter folder. | |
| preview_id | No | preview_id is the id returned by this tool's preview call. Required when confirm is true. | |
| idempotency_key | No | Optional. A retry with the same key returns the first result without a second write. Defaults to preview_id. |