teach
Records a query-to-resource mapping for future recall, enabling silent LLM-fired learning so repeated questions can reuse known AnkiWeb resources.
Instructions
Record a query -> resource mapping for future recall (LLM-fired, silent)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | Output as CSV (table and array responses) (default: false) | |
| yes | No | Skip confirmation prompts (explicit confirmation for scripts) (default: false) | |
| json | No | Output as JSON (default: false) | |
| agent | No | Set agent-friendly output defaults (--json --compact --no-input --no-color) (default: false) | |
| notes | No | Optional free-form note recorded in the audit log | |
| plain | No | Output as plain tab-separated text (default: false) | |
| query | No | User's original natural-language question (required) | |
| quiet | No | Silent on success (default true — designed for background invocation) (default: true) | |
| venue | No | Optional venue scope tag stored with the learning | |
| select | No | Comma-separated fields to include in output (e.g. --select id,notetype_id,deck_id) | |
| compact | No | Return only key fields (id, name, status, timestamps) for minimal token usage (default: false) | |
| dry-run | No | Show request without sending (default: false) | |
| max-age | No | Maximum acceptable age of local-store data before a stderr hint suggests sync; 0 disables (default: 30m0s) | |
| receipt | No | Write an atomic private run receipt (default: false) | |
| timeout | No | Request timeout (default: 1m0s) | |
| no-cache | No | Bypass response cache (default: false) | |
| no-color | No | Disable colored output (default: false) | |
| no-input | No | Disable all interactive prompts (for CI/agents) (default: false) | |
| no-learn | No | Disable the teach/recall learning loop for this invocation (default: false) | |
| resource | No | Resource ID — repeat for multiple (required) | |
| idempotent | No | Treat already-existing create results as a successful no-op (default: false) | |
| rate-limit | No | Max requests per second (0 to disable; default auto — pace to server rate-limit headers) (default: auto) | |
| data-source | No | Data source for read commands: auto (live with local fallback), live (API only), local (synced data only) (default: auto) | |
| no-validate | No | Suppress teach-time resource-shape validation (warnings to teach.log) (default: false) | |
| playbook-file | No | Optional path to a JSON playbook recording the CLI choreography for this query family | |
| playbook-json | No | Optional inline JSON playbook (mutually exclusive with --playbook-file; for agents without filesystem access) | |
| resource-type | No | Resource type (required; e.g. matches a row in the local resources table) | |
| client-profile | No | Select the tenant-gated client profile (env: ANKIWEB_CLIENT_PROFILE) | |
| human-friendly | No | Enable colored output and rich formatting (default: false) | |
| playbook-notes | No | Optional inline gotchas/workarounds for this query family (stored alongside the playbook) | |
| playbook-notes-file | No | Optional path to a markdown file with playbook notes | |
| allow-partial-failure | No | Downgrade response-body partial-failure (e.g. partialFailureError) to a warning instead of a non-zero exit (default: false) |