Add a file as text only
add_course_textAdds a document as text only: the fallback when its original cannot be uploaded with prepare_course_file (for example no way to send a file, an upload that failed, or the person preferring to send the text). The text is stored exactly as sent, so it is the document's own extracted text with the original file's name and kind, not a summary. Text that did not come from a file (typed or pasted notes) is added the same way, with kind 'file' and no name; soclever lists it as Pasted text, which has no original and is not marked incomplete in the status. soclever marks the file text only and incomplete: the original file itself, its layout, pictures and charts, unread scanned pages, recording detail and reliable page references are not kept, and the person sees that in soclever. Before the draft is planned, the same file can still be replaced by its original with prepare_course_file. Text with nothing usable is refused (no_usable_text). A recording's transcript needs recordingConsent true: the person's own statement that everyone recorded agreed, which soclever cannot check.
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": {
"requestId": "<requestId>",
"draftId": "<draftId>",
"kind": "<kind>",
"text": "<text>"
},
"name": "add_course_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 'file' (a document: PDF, Word, slides, text), 'photo' (a picture of pages or a whiteboard) or 'recording' (audio or video). | |
| name | No | The file's original name with its extension, for text that came from a file. Left out only for kind 'file' text that came from no file (typed or pasted notes); a recording's transcript or a photo's text keeps its original's name. | |
| text | Yes | The text you extracted, up to 200000 characters. | |
| draftId | Yes | The draftId start_document_course returned (or list_drafts shows). | |
| requestId | Yes | A random UUID, not derived from names, dates or any other content, that identifies one intended action. A retry of that same action uses the same UUID with identical arguments and returns that action's result; each new action has a new UUID. A UUID already used with different arguments is refused (request_conflict); one used for an earlier action returns that earlier result. | |
| destination | No | Where the course goes: 'personal' (the person's own soclever library, the default) or 'teaching' (a teacher's classes). | personal |
| recordingConsent | No | Recordings only: true is the person's own statement that everyone recorded agreed to it being used; soclever cannot check it. Omitted for other files. | |
| interfaceLanguage | No | The person's language for soclever's own words: 'en' or 'he'. | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |