record_semantic_failure
Record cases where code runs successfully but fails to achieve the intended goal. Capture what went wrong and what worked to improve future approaches.
Instructions
Record a semantic failure: when code executed successfully but didn't accomplish the goal.
This is different from error-based learning. Use this when:
Code ran without errors but produced wrong output
Tool was used but didn't achieve the intended objective
An approach worked technically but failed semantically
Args: objective: What you were trying to accomplish failed_approach: What you tried that didn't work (even though it ran) successful_approach: What actually worked to accomplish the objective context: Why the first approach failed or additional context tags: Comma-separated tags (e.g., "api,authentication,retry")
Example: record_semantic_failure( objective="Display image in Goose app", failed_approach="Used print() to output file path", successful_approach="Returned base64 encoded image as MCP content object", context="MCP clients need structured content objects, not just paths", tags="goose,mcp,display,images" )
Returns: Confirmation message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objective | Yes | ||
| failed_approach | Yes | ||
| successful_approach | Yes | ||
| context | No | ||
| tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |