Skip to navigation

Read a range of lines

View as Markdown

Read a range of lines of a document, a skill or a text file. Give docId or fileId. Lines start at 1, and find_text gives line numbers. Returns the text of the lines and totalLines.

Authentication

AuthorizationBearer

A Basement key (bsmt_...), from Agents, Connect in the app.

Request

This endpoint expects an object.
startLinedoubleRequired

The first line to read (1 or more)

docIdstringOptional

The document ID from list_docs

fileIdstringOptional

The file ID from list_files, list_skills or search

endLinedoubleOptional

The last line to read (default: 99 lines after startLine)

Response

The tool's answer.
totalLinesinteger
startLineinteger
endLineinteger
textstring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error