Diagnose operations
diagnoseAssess a situation from a question, or from a file (spreadsheet, document or shop-floor photo, base64-encoded, up to 5 MB): judgement, actions and sources. Sends the content to ABS and its AI model, so ask the user before sending anything confidential. Uses the account's credits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diagnose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language: zh (Chinese) or en (English) | |
| save | No | Keep it in the user's diagnosis records | |
| company | No | Company or scene, e.g. 'Line 1' | |
| filename | No | File name with extension (xlsx, csv, pdf, docx, txt, md or an image) | |
| question | No | What to assess or ask | |
| content_base64 | No | The file, base64-encoded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The user's diagnosis records in ABS, when saved | |
| answer | Yes | Judgement, actions and the basis for them | |
| sources | Yes | Cited sources: ref, title, url and the basis label of each | |
| saved_id | No | Diagnosis record id when saved |