at_knowledge_add
Add or update an AT command in the knowledge base, storing it under a specific chipset platform. Supports placeholders, response patterns, and parameter definitions.
Instructions
Add or update an AT command in the knowledge base. Stores in the specified chipset file (e.g. asr, quectel) or _custom. Use at_knowledge_chipsets to see available platforms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | YAML slug/key, e.g. 'at+csq', 'at+qcell'. Must be unique. | |
| name | No | Short name, e.g. 'Signal Quality'. | |
| type | No | Command type: empty=AT command, urc=passive URC wait, data=transparent data send. | |
| retry | No | Retry count. Default 1. | |
| expect | No | Expected response patterns. Example: ['+CSQ:', 'OK']. | |
| params | No | Parameter list. Each param has name/type/default/required. | |
| chipset | No | Target chipset platform. See at_knowledge_chipsets for options. Default '_custom' (user scratchpad). Common: asr, quectel. | |
| command | Yes | Actual AT command string. Example: 'AT+CSQ', 'AT+QCELL?'. Supports {param} placeholders. | |
| timeout | No | Timeout in seconds. Default 1.0. | |
| standard | No | Source: 3gpp / vendor / custom. Default vendor. | |
| description | No | Function description including return value meanings. Multi-line supported. |