parse_document
Convert a document file (PDF, DOCX, XLSX, PPTX, HTML or CSV) to Markdown. Use name and contentBase64 for bytes, or a public url with LlamaParse or Reducto. Firecrawl accepts bytes here; use read_page for a public URL. Defaults to firecrawl. Set provider to choose another supported provider; Fieldwork never switches providers after an error.
/api/v1/tools/parse_documentAuthorizationBearer token · headerrequiredA Fieldwork gateway key, issued per agent by the operator. Send it as Authorization: Bearer <key>.
application/jsonproviderstringfirecrawlllamaparsereductotimeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
namestringrequiredThe file name with its extension, such as spec-sheet.pdf. The extension tells the provider the type.
contentBase64stringrequiredThe file's bytes, base64-encoded.
pagesbooleanAlso return the Markdown of each page separately.
maxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
namestringrequiredThe file name with its extension, such as spec-sheet.pdf. The extension tells the provider the type.
contentBase64stringrequiredThe file's bytes, base64-encoded.
pagesbooleanAlso return the Markdown of each page separately.
maxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
providerstringrequirednamestringThe file name with its extension, such as spec-sheet.pdf. The extension tells the provider the type.
contentBase64stringThe file's bytes, base64-encoded.
urlstring<uri>Public HTTP or HTTPS document URL; the provider fetches it. Use instead of name and contentBase64 for large files.
resumestringThe jobId from an earlier call's error, when that call timed out or was cancelled. Waits for that job instead of starting and paying for a new one.
maxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
providerstringrequiredanyanynamestringThe file name with its extension, such as spec-sheet.pdf. The extension tells the provider the type.
contentBase64stringThe file's bytes, base64-encoded.
urlstring<uri>Public HTTP or HTTPS document URL; the provider fetches it. Use instead of name and contentBase64 for large files.
resumestringThe jobId from an earlier call's error, when that call timed out or was cancelled. Waits for that job instead of starting and paying for a new one.
maxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
providerstringrequiredanyanyThe provider that ran the call and its normalized result.
providerstringrequiredfirecrawlllamaparsereductorequestIdstringrequiredresultobjectrequiredShow propertiesHide properties
blocksobject[]Show propertiesHide properties
objectboxobjectWhere it sits on the page, as fractions of the page's width and height from its top-left corner.
Show propertiesHide properties
heightnumberrequiredleftnumberrequiredtopnumberrequiredwidthnumberrequiredcellsobject[]Show propertiesHide properties
objectboxobjectWhere it sits on the page, as fractions of the page's width and height from its top-left corner.
Show propertiesHide properties
heightnumberrequiredleftnumberrequiredtopnumberrequiredwidthnumberrequiredboxesobject[]Each box the cell sits in, when the provider gives them one by one; box encloses them.
Show propertiesHide properties
objectheightnumberrequiredleftnumberrequiredtopnumberrequiredwidthnumberrequiredcolumnintegerrequiredThe column, from 0.
columnSpanintegerColumns the cell spans.
linesobject[]Show propertiesHide properties
objectboxobjectrequiredWhere it sits on the page, as fractions of the page's width and height from its top-left corner.
Show propertiesHide properties
heightnumberrequiredleftnumberrequiredtopnumberrequiredwidthnumberrequiredtextstringrequiredrowintegerrequiredThe row, from 0.
rowSpanintegerRows the cell spans.
textstringrequiredcontainerstringThe page header or footer the block was read out of.
headerfooterlinesobject[]Show propertiesHide properties
objectboxobjectrequiredWhere it sits on the page, as fractions of the page's width and height from its top-left corner.
Show propertiesHide properties
heightnumberrequiredleftnumberrequiredtopnumberrequiredwidthnumberrequiredtextstringrequiredpageintegerrequiredThe physical page number, starting at 1.
textstringrequiredtypestringrequiredwordsobject[]Show propertiesHide properties
objectboxobjectrequiredWhere it sits on the page, as fractions of the page's width and height from its top-left corner.
Show propertiesHide properties
heightnumberrequiredleftnumberrequiredtopnumberrequiredwidthnumberrequiredtextstringrequiredidstringmarkdownstringrequiredmetaobjectRequest details from the provider: its request id, what it charged and any warnings.
Show propertiesHide properties
requestIdstringusageobjectShow propertiesHide properties
costUsdnumbercreditsnumberunitsobjectwarningsstring[]pageCountintegerPages in the file.
pagesobject[]Show propertiesHide properties
objectheightnumberThe page's height in points.
markdownstringrequiredpageNumberintegerrequiredThe physical page number, starting at 1.
widthnumberThe page's width in points.
truncatedobject[]One entry for each cut text field; absent when nothing was cut.
Show propertiesHide properties
objectlengthintegerrequiredOriginal character length.
pathstringrequiredshownintegerrequiredCharacters shown before the inline cut note.
A refusal or a failed call. Branch on error.code; never parse the message.
errorobjectrequiredShow propertiesHide properties
codestringrequiredAbortedInvalidRequestJobFailedNotAFileNotFoundProviderErrorRateLimitedTimeoutTooLargeUnauthorizedUnsupportedjobIdstringA job that was already started. Pass it as resume instead of repeating the call.
messagestringrequiredproviderstringretryAfternumberSeconds to wait.
retryablebooleanrequiredWhether repeating the same call can succeed.
requestIdstring