{
  "answers": {
    "c00": {
      "noul": 0.98,
      "type": "noul"
    },
    "c01": {
      "noul": 0.66,
      "type": "noul"
    },
    "c02": {
      "noul": 0.99,
      "type": "noul"
    },
    "c03": {
      "noul": 0.99,
      "type": "noul"
    },
    "c04": {
      "noul": 0.99,
      "type": "noul"
    },
    "c05": {
      "noul": 0.4,
      "type": "noul"
    },
    "c06": {
      "noul": 0.99,
      "type": "noul"
    },
    "c07": {
      "noul": 0.99,
      "type": "noul"
    },
    "c08": {
      "noul": 0.99,
      "type": "noul"
    },
    "c09": {
      "noul": 0.8,
      "type": "noul"
    },
    "c10": {
      "noul": 0.99,
      "type": "noul"
    },
    "c11": {
      "noul": 0.98,
      "type": "noul"
    },
    "c12": {
      "noul": 0.99,
      "type": "noul"
    },
    "c13": {
      "noul": 0.92,
      "type": "noul"
    },
    "c14": {
      "noul": 0.94,
      "type": "noul"
    },
    "c15": {
      "noul": 0.99,
      "type": "noul"
    },
    "c16": {
      "noul": 0.98,
      "type": "noul"
    },
    "c17": {
      "noul": 0.93,
      "type": "noul"
    },
    "w00": {
      "noul": 0.88,
      "type": "noul"
    },
    "w01": {
      "noul": 0.82,
      "type": "noul"
    },
    "w02": {
      "noul": 0.84,
      "type": "noul"
    },
    "w03": {
      "noul": 0.98,
      "type": "noul"
    },
    "w04": {
      "noul": 0.98,
      "type": "noul"
    },
    "w05": {
      "noul": 0.98,
      "type": "noul"
    },
    "w06": {
      "noul": 0.9,
      "type": "noul"
    },
    "w07": {
      "noul": 0.96,
      "type": "noul"
    },
    "w08": {
      "noul": 0.96,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T04:02:05Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 0.98,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.66,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.99,
      "question": "c02"
    },
    {
      "call": 3,
      "noul": 0.99,
      "question": "c03"
    },
    {
      "call": 4,
      "noul": 0.99,
      "question": "c04"
    },
    {
      "call": 5,
      "noul": 0.4,
      "question": "c05"
    },
    {
      "call": 6,
      "noul": 0.99,
      "question": "c06"
    },
    {
      "call": 7,
      "noul": 0.99,
      "question": "c07"
    },
    {
      "call": 8,
      "noul": 0.99,
      "question": "c08"
    },
    {
      "call": 9,
      "noul": 0.8,
      "question": "c09"
    },
    {
      "call": 10,
      "noul": 0.99,
      "question": "c10"
    },
    {
      "call": 11,
      "noul": 0.98,
      "question": "c11"
    },
    {
      "call": 12,
      "noul": 0.99,
      "question": "c12"
    },
    {
      "call": 13,
      "noul": 0.92,
      "question": "c13"
    },
    {
      "call": 14,
      "noul": 0.94,
      "question": "c14"
    },
    {
      "call": 15,
      "noul": 0.99,
      "question": "c15"
    },
    {
      "call": 16,
      "noul": 0.98,
      "question": "c16"
    },
    {
      "call": 17,
      "noul": 0.93,
      "question": "c17"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 32480,
  "method": "0.15.0",
  "model": "jev-1.14.0",
  "model_asked": "jev-1.14.0",
  "request": {
    "model": "jev-1.14.0",
    "questions": {
      "c00": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "category": {}
          },
          "parameter": "category",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool list_components: Invalid option: expected one of \"Inputs\"|\"Buttons\"|\"Navigation\"|\"Layout\"|\"Data display\"|\"Editors & viewers\"|\"Chart\"|\"Planning\"|\"Feedback\"|\"Chat\"|\"Icons\" at category",
          "tool": "list_components"
        },
        "type": "noul"
      },
      "c01": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_component: Invalid input: expected string, received undefined at tag",
          "tool": "get_component"
        },
        "type": "noul"
      },
      "c02": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "tag": {}
          },
          "parameter": "tag",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_component: Invalid input: expected string, received object at tag",
          "tool": "get_component"
        },
        "type": "noul"
      },
      "c03": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool search_components: Invalid input: expected string, received undefined at query",
          "tool": "search_components"
        },
        "type": "noul"
      },
      "c04": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "query": {}
          },
          "parameter": "query",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool search_components: Invalid input: expected string, received object at query",
          "tool": "search_components"
        },
        "type": "noul"
      },
      "c05": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_examples: Invalid input: expected string, received undefined at tag",
          "tool": "get_examples"
        },
        "type": "noul"
      },
      "c06": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "tag": {}
          },
          "parameter": "tag",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_examples: Invalid input: expected string, received object at tag",
          "tool": "get_examples"
        },
        "type": "noul"
      },
      "c07": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool search_examples: Invalid input: expected string, received undefined at query",
          "tool": "search_examples"
        },
        "type": "noul"
      },
      "c08": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "query": {}
          },
          "parameter": "query",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool search_examples: Invalid input: expected string, received object at query",
          "tool": "search_examples"
        },
        "type": "noul"
      },
      "c09": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_presets: Invalid input: expected string, received undefined at tag",
          "tool": "get_presets"
        },
        "type": "noul"
      },
      "c10": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "tag": {}
          },
          "parameter": "tag",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_presets: Invalid input: expected string, received object at tag",
          "tool": "get_presets"
        },
        "type": "noul"
      },
      "c11": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "format": {}
          },
          "parameter": "format",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_theme: Invalid option: expected one of \"markdown\"|\"json\" at format",
          "tool": "get_theme"
        },
        "type": "noul"
      },
      "c12": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool generate_variant: Invalid input: expected string, received undefined at tag\nInvalid input: expected string, received undefined at name",
          "tool": "generate_variant"
        },
        "type": "noul"
      },
      "c13": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "name": "didrun",
            "tag": {}
          },
          "parameter": "tag",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool generate_variant: Invalid input: expected string, received object at tag\nkebab-case with at least one hyphen, e.g. app-danger-button at name",
          "tool": "generate_variant"
        },
        "type": "noul"
      },
      "c14": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool validate_markup: Invalid input: expected string, received undefined at code",
          "tool": "validate_markup"
        },
        "type": "noul"
      },
      "c15": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "code": {}
          },
          "parameter": "code",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool validate_markup: Invalid input: expected string, received object at code",
          "tool": "validate_markup"
        },
        "type": "noul"
      },
      "c16": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "topic": {}
          },
          "parameter": "topic",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get_workflow_guide: Invalid option: expected one of \"workflow\"|\"theming\"|\"variant-components\"|\"frameworks\" at topic",
          "tool": "get_workflow_guide"
        },
        "type": "noul"
      },
      "c17": {
        "criteria": {
          "false": "The reply does not say the tool is missing: for example a generic failure, a crash, or a normal answer.",
          "true": "The reply says the tool is unknown, not found, or does not exist."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` tell the caller that there is no tool named `tool`?",
          "reply": "MCP error -32602: Tool didrun_unknown_tool not found",
          "tool": "didrun_unknown_tool"
        },
        "type": "noul"
      },
      "w00": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "# `c2-button` API\n\n`c2-button` is a themeable button from `@c2n/components`. The package is **not installed** in the current project.\n\n```bash\nnpm install @c2n/components\n```\n\n```js\nimport '@c2n/components/button';\n```\n\n## Attributes\n\n| Attribute | Type | Default | Description |\n|---|---|---|---|\n| `disabled` | boolean | `false` | Disables clicks and dims the button. |\n| `running` | boolean | `false` | Marks the button busy, ignores clicks, and replaces the prefix icon with the `running-icon` slot. |\n| `selected` | boolean | `false` | Sets the pressed state of a toggle button and `aria-pressed=\"true\"`. |\n| `toggle` | boolean | `false` | Declares a toggle button; announces `aria-pressed=\"false\"` when not selected. |\n| `type` | `'button' \\| 'submit' \\| 'reset'` | `'button'` | Controls native button behavior. |\n| `value` | string | `''` | Identity for `c2-button-group`; included in submitted form data when `name` is set. |\n| `name` | string | `''` | Form field name when this button submits the form. |\n| `aria-label` | string or `null` | `null` | Accessible name forwarded to the inner button; useful for icon-only buttons. |\n\n## Events\n\nThe component API returned **no component-specific events**.\n\n## CSS variables\n\nSet variables on the element, a class, or an ancestor. A dash below means the API did not specify a default.\n\n### Container\n\n| Variable | Default |\n|---|---|\n| `--c2-button__container--height` | `36px` |\n| `--c2-button__container--width` | `auto` |\n| `--c2-button__container--justify-content` | `center` |\n| `--c2-button__container--padding-left` | `16px` |\n| `--c2-button__container--padding-right` | `16px` |\n| `--c2-button__container--gap` | `8px` |\n| `--c2-button__container--border-radius` | `6px` |\n| `--c2-button__container--border` | `1px solid transparent` |\n| `--c2-button__container--box-shadow` | `none` |\n| `--c2-button__container--background-color` | `rgb(2, 101, 220)` |\n| `--c2-button__container--color` | `#ffffff` |\n| `--c2-button__container--font-size",
          "done_when": "The transcript shows the button API sections and the component's theme-token mappings in tool replies.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "include": [
                  "attributes",
                  "events",
                  "css"
                ],
                "tag": "c2-button"
              },
              "reply": "# Button (c2-button)\nThemeable button with slots for text, prefix, suffix and running icons.\n\n- Package: `@c2n/components` — not installed. `npm install @c2n/components` (it ships in `@c2n/components`, the one published component package)\n- Status: stable · Category: Buttons · Docs: https://code2nguyen.github.io/web-components/components/button\n- Register: `import '@c2n/components/button'` · Class: `import { Button } from '@c2n/components/button'`\n\n\n### Attributes\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| `disabled` | `boolean` | `false` | Disables the button: it no longer receives clicks and is rendered dimmed. |\n| `running` | `boolean` | `false` | Marks the button as busy: clicks are ignored and the `running-icon` slot replaces the prefix icon. |\n| `selected` | `boolean` | `false` | Pressed state of a toggle button (`aria-pressed=\"true\"`); styled with the `container__selected--*` variables. |\n| `toggle` | `boolean` | `false` | Declares a toggle button: `aria-pressed` is announced as `false` while not selected. Set by `c2-button-group` in selection modes. |\n| `type` | `'button' \\| 'submit' \\| 'reset'` | `'button'` | Native button behavior. `submit` submits the nearest form and `reset` restores it. |\n| `value` | `string` | `''` | Stable identity used by `c2-button-group` and included in submitted form data when `name` is set. |\n| `name` | `string` | `''` | Form field name used with `value` when the button is the control that submits the form. |\n| `aria-label` | `string \\| null` | `null` | Accessible name forwarded to the inner `<button>`. Set it on an icon-only button or one whose visible text is not its name. |\n\n### CSS variables\n\nSet them on the element, a class or any ancestor. `token` = the `--c2-theme--*` token the base theme maps the variable to.\n\n#### container\n- `--c2-button__container--height` = `36px` (pixel)\n- `--c2-button__container--width` = `auto` (width) — Width of the host. `100%` makes a full-width button.\n- `--c2-button__container--justify-content` = `center` (justify-content) — How the label and its icons sit in the button. `flex-start` for a row-shaped button (a list entry, a group header), `space-between` to push a trailing hint to the far edge.\n- `--c2-button__container--padding-left` = `16px` (padding)\n- `--c2-button__container--padding-right` = `16px` (padding)\n- `--c2-button__container--gap` = `8px` (pixel)\n- `--c2-button__container--border-radius` = `6px` (border-radius) → `--c2-theme--radius-md`\n- `--c2-button__container--border` = `1px solid transparent` (border)\n- `--c2-button__container--box-shadow` = `none` (box-shadow)\n- `--c2-button__container--background-color` = `rgb(2, 101, 220)` (color) → `--c2-theme--color-primary`\n- `--c2-button__container--color` = `#ffffff` (color) → `--c2-theme--color-on-primary`\n- `--c2-button__container--font-size` = `14px` (pixel) → `--c2-theme--font-size-md`\n- `--c2-button__container--font-weight` = `500` (font-weight) → `--c2-theme--font-weight-medium`\n*hover*\n- `--c2-button__container__hover--background-color` = `rgb(1, 84, 184)` (color) → `--c2-theme--color-primary-hover`\n- `--c2-button__container__hover--color` (color)\n- `--c2-button__container__hover--border` (border)\n- `--c2-button__container__hover--box-shadow` (box-shadow)\n*active*\n- `--c2-button__container__active--background-color` = `rgb(1, 70, 154)` (color) → `--c2-theme--color-primary-active`\n*selected*\n- `--c2-button__container__selected--background-color` (color) — Pressed state of a toggle button (see `selected`).\n- `--c2-button__container__selected--color` (color)\n- `--c2-button__container__selected--border` (border)\n- `--c2-button__container__selected--box-shadow` (box-shadow)\n*focus*\n- `--c2-button__container__focus--outline` = `2px solid rgba(2, 101, 220, 0.4)` (outline) → `--c2-theme--focus-ring`\n- `--c2-button__container__focus--outline-offset` = `2px` (pixel)\n*disabled*\n- `--c2-button__container__disabled--opacity` = `0.38` (opacity) → `--c2-theme--disabled-opacity`\n#### label\n- `--c2-button__label--flex-grow` = `0` (number) — Whether the label takes the leftover width. `1` pushes a suffix icon to the far edge of a fixed-width button.\n- `--c2-button__label--justify-content` = `center` (justify-content) — How the label sits once it has grown. `flex-start` keeps the text next to a prefix icon.\n#### icon\n- `--c2-button__icon--size` = `18px` (pixel)\n- `--c2-button__icon--color` (color)\n#### running-icon\n- `--c2-button__running-icon--size` = `18px` (pixel)\n- `--c2-button__running-icon--color` (color)\n- `--c2-button__running-icon--animation-duration` = `800ms` (duration) → `--c2-theme--motion-scale`\n\nExamples: `get_examples` with `tag: \"c2-button\"` (46 available, including gallery variants).",
              "tool": "get_component"
            },
            {
              "arguments": {
                "tag": "c2-button"
              },
              "reply": "# Theme mapping for Button\n\n| Component variable | Token | Default |\n| --- | --- | --- |\n| `--c2-button__container--border-radius` | `--c2-theme--radius-md` | `6px` |\n| `--c2-button__container--background-color` | `--c2-theme--color-primary` | `rgb(2, 101, 220)` |\n| `--c2-button__container--color` | `--c2-theme--color-on-primary` | `#ffffff` |\n| `--c2-button__container--font-size` | `--c2-theme--font-size-md` | `14px` |\n| `--c2-button__container--font-weight` | `--c2-theme--font-weight-medium` | `500` |\n| `--c2-button__container__hover--background-color` | `--c2-theme--color-primary-hover` | `rgb(1, 84, 184)` |\n| `--c2-button__container__active--background-color` | `--c2-theme--color-primary-active` | `rgb(1, 70, 154)` |\n| `--c2-button__container__focus--outline` | `--c2-theme--focus-ring` | `2px solid rgba(2, 101, 220, 0.4)` |\n| `--c2-button__container__disabled--opacity` | `--c2-theme--disabled-opacity` | `0.38` |\n| `--c2-button__running-icon--animation-duration` | `--c2-theme--motion-scale` | `800ms` |\n\nVariables without a token keep the component default; set them on a class for a variant.",
              "tool": "get_theme"
            }
          ],
          "task": "Show me the c2-button API for attributes, events, and CSS variables, then show how its variables map to theme tokens."
        },
        "type": "noul"
      },
      "w01": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "# `c2-button` API\n\n`c2-button` is a stable, themeable button from `@c2n/components`. The package is **not installed** in the current project.\n\n```sh\nnpm install @c2n/components\n```\n\n```js\nimport '@c2n/components/button';\n```\n\n## Attributes\n\n| Attribute | Type | Default | Purpose |\n|---|---|---:|---|\n| `disabled` | boolean | `false` | Disables clicks and dims the button. |\n| `running` | boolean | `false` | Marks the button busy, ignores clicks, and replaces the prefix icon with the `running-icon` slot. |\n| `selected` | boolean | `false` | Sets the pressed state of a toggle button. |\n| `toggle` | boolean | `false` | Declares a toggle button; exposes an unselected state as `aria-pressed=\"false\"`. |\n| `type` | `'button' \\| 'submit' \\| 'reset'` | `'button'` | Controls native button behavior. |\n| `value` | string | `''` | Identity used by button groups and submitted form data when `name` is set. |\n| `name` | string | `''` | Form field name used with `value` when the button submits a form. |\n| `aria-label` | `string \\| null` | `null` | Accessible name forwarded to the inner button; useful for icon-only buttons. |\n\n## Events\n\nThe component API returned **no component-specific events**.\n\n## CSS variables\n\nSet these on the element, a class, or an ancestor. A dash below means the API did not list a default.\n\n### Container\n\n| Variable | Default |\n|---|---|\n| `--c2-button__container--height` | `36px` |\n| `--c2-button__container--width` | `auto` |\n| `--c2-button__container--justify-content` | `center` |\n| `--c2-button__container--padding-left` | `16px` |\n| `--c2-button__container--padding-right` | `16px` |\n| `--c2-button__container--gap` | `8px` |\n| `--c2-button__container--border-radius` | `6px` |\n| `--c2-button__container--border` | `1px solid transparent` |\n| `--c2-button__container--box-shadow` | `none` |\n| `--c2-button__container--background-color` | `rgb(2, 101, 220)` |\n| `--c2-button__container--color` | `#ffffff` |\n| `--c2-button__container--font-size` | `14px` |\n| `--c2-",
          "done_when": "The transcript shows the button API sections and the component's theme-token mappings in tool replies.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "include": [
                  "attributes",
                  "events",
                  "css"
                ],
                "tag": "c2-button"
              },
              "reply": "# Button (c2-button)\nThemeable button with slots for text, prefix, suffix and running icons.\n\n- Package: `@c2n/components` — not installed. `npm install @c2n/components` (it ships in `@c2n/components`, the one published component package)\n- Status: stable · Category: Buttons · Docs: https://code2nguyen.github.io/web-components/components/button\n- Register: `import '@c2n/components/button'` · Class: `import { Button } from '@c2n/components/button'`\n\n\n### Attributes\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| `disabled` | `boolean` | `false` | Disables the button: it no longer receives clicks and is rendered dimmed. |\n| `running` | `boolean` | `false` | Marks the button as busy: clicks are ignored and the `running-icon` slot replaces the prefix icon. |\n| `selected` | `boolean` | `false` | Pressed state of a toggle button (`aria-pressed=\"true\"`); styled with the `container__selected--*` variables. |\n| `toggle` | `boolean` | `false` | Declares a toggle button: `aria-pressed` is announced as `false` while not selected. Set by `c2-button-group` in selection modes. |\n| `type` | `'button' \\| 'submit' \\| 'reset'` | `'button'` | Native button behavior. `submit` submits the nearest form and `reset` restores it. |\n| `value` | `string` | `''` | Stable identity used by `c2-button-group` and included in submitted form data when `name` is set. |\n| `name` | `string` | `''` | Form field name used with `value` when the button is the control that submits the form. |\n| `aria-label` | `string \\| null` | `null` | Accessible name forwarded to the inner `<button>`. Set it on an icon-only button or one whose visible text is not its name. |\n\n### CSS variables\n\nSet them on the element, a class or any ancestor. `token` = the `--c2-theme--*` token the base theme maps the variable to.\n\n#### container\n- `--c2-button__container--height` = `36px` (pixel)\n- `--c2-button__container--width` = `auto` (width) — Width of the host. `100%` makes a full-width button.\n- `--c2-button__container--justify-content` = `center` (justify-content) — How the label and its icons sit in the button. `flex-start` for a row-shaped button (a list entry, a group header), `space-between` to push a trailing hint to the far edge.\n- `--c2-button__container--padding-left` = `16px` (padding)\n- `--c2-button__container--padding-right` = `16px` (padding)\n- `--c2-button__container--gap` = `8px` (pixel)\n- `--c2-button__container--border-radius` = `6px` (border-radius) → `--c2-theme--radius-md`\n- `--c2-button__container--border` = `1px solid transparent` (border)\n- `--c2-button__container--box-shadow` = `none` (box-shadow)\n- `--c2-button__container--background-color` = `rgb(2, 101, 220)` (color) → `--c2-theme--color-primary`\n- `--c2-button__container--color` = `#ffffff` (color) → `--c2-theme--color-on-primary`\n- `--c2-button__container--font-size` = `14px` (pixel) → `--c2-theme--font-size-md`\n- `--c2-button__container--font-weight` = `500` (font-weight) → `--c2-theme--font-weight-medium`\n*hover*\n- `--c2-button__container__hover--background-color` = `rgb(1, 84, 184)` (color) → `--c2-theme--color-primary-hover`\n- `--c2-button__container__hover--color` (color)\n- `--c2-button__container__hover--border` (border)\n- `--c2-button__container__hover--box-shadow` (box-shadow)\n*active*\n- `--c2-button__container__active--background-color` = `rgb(1, 70, 154)` (color) → `--c2-theme--color-primary-active`\n*selected*\n- `--c2-button__container__selected--background-color` (color) — Pressed state of a toggle button (see `selected`).\n- `--c2-button__container__selected--color` (color)\n- `--c2-button__container__selected--border` (border)\n- `--c2-button__container__selected--box-shadow` (box-shadow)\n*focus*\n- `--c2-button__container__focus--outline` = `2px solid rgba(2, 101, 220, 0.4)` (outline) → `--c2-theme--focus-ring`\n- `--c2-button__container__focus--outline-offset` = `2px` (pixel)\n*disabled*\n- `--c2-button__container__disabled--opacity` = `0.38` (opacity) → `--c2-theme--disabled-opacity`\n#### label\n- `--c2-button__label--flex-grow` = `0` (number) — Whether the label takes the leftover width. `1` pushes a suffix icon to the far edge of a fixed-width button.\n- `--c2-button__label--justify-content` = `center` (justify-content) — How the label sits once it has grown. `flex-start` keeps the text next to a prefix icon.\n#### icon\n- `--c2-button__icon--size` = `18px` (pixel)\n- `--c2-button__icon--color` (color)\n#### running-icon\n- `--c2-button__running-icon--size` = `18px` (pixel)\n- `--c2-button__running-icon--color` (color)\n- `--c2-button__running-icon--animation-duration` = `800ms` (duration) → `--c2-theme--motion-scale`\n\nExamples: `get_examples` with `tag: \"c2-button\"` (46 available, including gallery variants).",
              "tool": "get_component"
            },
            {
              "arguments": {
                "tag": "c2-button"
              },
              "reply": "# Theme mapping for Button\n\n| Component variable | Token | Default |\n| --- | --- | --- |\n| `--c2-button__container--border-radius` | `--c2-theme--radius-md` | `6px` |\n| `--c2-button__container--background-color` | `--c2-theme--color-primary` | `rgb(2, 101, 220)` |\n| `--c2-button__container--color` | `--c2-theme--color-on-primary` | `#ffffff` |\n| `--c2-button__container--font-size` | `--c2-theme--font-size-md` | `14px` |\n| `--c2-button__container--font-weight` | `--c2-theme--font-weight-medium` | `500` |\n| `--c2-button__container__hover--background-color` | `--c2-theme--color-primary-hover` | `rgb(1, 84, 184)` |\n| `--c2-button__container__active--background-color` | `--c2-theme--color-primary-active` | `rgb(1, 70, 154)` |\n| `--c2-button__container__focus--outline` | `--c2-theme--focus-ring` | `2px solid rgba(2, 101, 220, 0.4)` |\n| `--c2-button__container__disabled--opacity` | `--c2-theme--disabled-opacity` | `0.38` |\n| `--c2-button__running-icon--animation-duration` | `--c2-theme--motion-scale` | `800ms` |\n\nVariables without a token keep the component default; set them on a class for a variant.",
              "tool": "get_theme"
            }
          ],
          "task": "Show me the c2-button API for attributes, events, and CSS variables, then show how its variables map to theme tokens."
        },
        "type": "noul"
      },
      "w02": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "# `c2-button` API\n\nA themeable button with text, prefix, suffix, and running-icon slots.\n\n**Package:** `@c2n/components` — not installed in the current project.\n\n```sh\nnpm install @c2n/components\n```\n\n```js\nimport '@c2n/components/button'; // Register the custom element\n```\n\n## Attributes\n\n| Attribute | Type | Default | Description |\n|---|---|---|---|\n| `disabled` | `boolean` | `false` | Disables clicks and renders the button dimmed. |\n| `running` | `boolean` | `false` | Marks the button busy; ignores clicks and replaces the prefix icon with the `running-icon` slot. |\n| `selected` | `boolean` | `false` | Sets the pressed state of a toggle button, including `aria-pressed=\"true\"`. |\n| `toggle` | `boolean` | `false` | Declares a toggle button; announces `aria-pressed=\"false\"` when not selected. |\n| `type` | `'button' \\| 'submit' \\| 'reset'` | `'button'` | Controls native button behavior. |\n| `value` | `string` | `''` | Identity used by `c2-button-group` and submitted with `name` when applicable. |\n| `name` | `string` | `''` | Form field name used with `value` when this button submits the form. |\n| `aria-label` | `string \\| null` | `null` | Accessible name forwarded to the inner button; useful for icon-only buttons. |\n\n## Events\n\nThe component API returned **no component-specific events**.\n\n## CSS variables\n\nSet variables on the element, a class, or an ancestor. A dash below means the API did not specify a default.\n\n### Container\n\n| Variable | Default | Purpose |\n|---|---|---|\n| `--c2-button__container--height` | `36px` | Height |\n| `--c2-button__container--width` | `auto` | Host width; use `100%` for full width |\n| `--c2-button__container--justify-content` | `center` | Alignment of label and icons |\n| `--c2-button__container--padding-left` | `16px` | Left padding |\n| `--c2-button__container--padding-right` | `16px` | Right padding |\n| `--c2-button__container--gap` | `8px` | Gap between content |\n| `--c2-button__container--border-radius` | `6px` | Corner radius |\n| `--c",
          "done_when": "The transcript shows the button API sections and the component's theme-token mappings in tool replies.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "include": [
                  "attributes",
                  "events",
                  "css"
                ],
                "tag": "c2-button"
              },
              "reply": "# Button (c2-button)\nThemeable button with slots for text, prefix, suffix and running icons.\n\n- Package: `@c2n/components` — not installed. `npm install @c2n/components` (it ships in `@c2n/components`, the one published component package)\n- Status: stable · Category: Buttons · Docs: https://code2nguyen.github.io/web-components/components/button\n- Register: `import '@c2n/components/button'` · Class: `import { Button } from '@c2n/components/button'`\n\n\n### Attributes\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| `disabled` | `boolean` | `false` | Disables the button: it no longer receives clicks and is rendered dimmed. |\n| `running` | `boolean` | `false` | Marks the button as busy: clicks are ignored and the `running-icon` slot replaces the prefix icon. |\n| `selected` | `boolean` | `false` | Pressed state of a toggle button (`aria-pressed=\"true\"`); styled with the `container__selected--*` variables. |\n| `toggle` | `boolean` | `false` | Declares a toggle button: `aria-pressed` is announced as `false` while not selected. Set by `c2-button-group` in selection modes. |\n| `type` | `'button' \\| 'submit' \\| 'reset'` | `'button'` | Native button behavior. `submit` submits the nearest form and `reset` restores it. |\n| `value` | `string` | `''` | Stable identity used by `c2-button-group` and included in submitted form data when `name` is set. |\n| `name` | `string` | `''` | Form field name used with `value` when the button is the control that submits the form. |\n| `aria-label` | `string \\| null` | `null` | Accessible name forwarded to the inner `<button>`. Set it on an icon-only button or one whose visible text is not its name. |\n\n### CSS variables\n\nSet them on the element, a class or any ancestor. `token` = the `--c2-theme--*` token the base theme maps the variable to.\n\n#### container\n- `--c2-button__container--height` = `36px` (pixel)\n- `--c2-button__container--width` = `auto` (width) — Width of the host. `100%` makes a full-width button.\n- `--c2-button__container--justify-content` = `center` (justify-content) — How the label and its icons sit in the button. `flex-start` for a row-shaped button (a list entry, a group header), `space-between` to push a trailing hint to the far edge.\n- `--c2-button__container--padding-left` = `16px` (padding)\n- `--c2-button__container--padding-right` = `16px` (padding)\n- `--c2-button__container--gap` = `8px` (pixel)\n- `--c2-button__container--border-radius` = `6px` (border-radius) → `--c2-theme--radius-md`\n- `--c2-button__container--border` = `1px solid transparent` (border)\n- `--c2-button__container--box-shadow` = `none` (box-shadow)\n- `--c2-button__container--background-color` = `rgb(2, 101, 220)` (color) → `--c2-theme--color-primary`\n- `--c2-button__container--color` = `#ffffff` (color) → `--c2-theme--color-on-primary`\n- `--c2-button__container--font-size` = `14px` (pixel) → `--c2-theme--font-size-md`\n- `--c2-button__container--font-weight` = `500` (font-weight) → `--c2-theme--font-weight-medium`\n*hover*\n- `--c2-button__container__hover--background-color` = `rgb(1, 84, 184)` (color) → `--c2-theme--color-primary-hover`\n- `--c2-button__container__hover--color` (color)\n- `--c2-button__container__hover--border` (border)\n- `--c2-button__container__hover--box-shadow` (box-shadow)\n*active*\n- `--c2-button__container__active--background-color` = `rgb(1, 70, 154)` (color) → `--c2-theme--color-primary-active`\n*selected*\n- `--c2-button__container__selected--background-color` (color) — Pressed state of a toggle button (see `selected`).\n- `--c2-button__container__selected--color` (color)\n- `--c2-button__container__selected--border` (border)\n- `--c2-button__container__selected--box-shadow` (box-shadow)\n*focus*\n- `--c2-button__container__focus--outline` = `2px solid rgba(2, 101, 220, 0.4)` (outline) → `--c2-theme--focus-ring`\n- `--c2-button__container__focus--outline-offset` = `2px` (pixel)\n*disabled*\n- `--c2-button__container__disabled--opacity` = `0.38` (opacity) → `--c2-theme--disabled-opacity`\n#### label\n- `--c2-button__label--flex-grow` = `0` (number) — Whether the label takes the leftover width. `1` pushes a suffix icon to the far edge of a fixed-width button.\n- `--c2-button__label--justify-content` = `center` (justify-content) — How the label sits once it has grown. `flex-start` keeps the text next to a prefix icon.\n#### icon\n- `--c2-button__icon--size` = `18px` (pixel)\n- `--c2-button__icon--color` (color)\n#### running-icon\n- `--c2-button__running-icon--size` = `18px` (pixel)\n- `--c2-button__running-icon--color` (color)\n- `--c2-button__running-icon--animation-duration` = `800ms` (duration) → `--c2-theme--motion-scale`\n\nExamples: `get_examples` with `tag: \"c2-button\"` (46 available, including gallery variants).",
              "tool": "get_component"
            },
            {
              "arguments": {
                "tag": "c2-button"
              },
              "reply": "# Theme mapping for Button\n\n| Component variable | Token | Default |\n| --- | --- | --- |\n| `--c2-button__container--border-radius` | `--c2-theme--radius-md` | `6px` |\n| `--c2-button__container--background-color` | `--c2-theme--color-primary` | `rgb(2, 101, 220)` |\n| `--c2-button__container--color` | `--c2-theme--color-on-primary` | `#ffffff` |\n| `--c2-button__container--font-size` | `--c2-theme--font-size-md` | `14px` |\n| `--c2-button__container--font-weight` | `--c2-theme--font-weight-medium` | `500` |\n| `--c2-button__container__hover--background-color` | `--c2-theme--color-primary-hover` | `rgb(1, 84, 184)` |\n| `--c2-button__container__active--background-color` | `--c2-theme--color-primary-active` | `rgb(1, 70, 154)` |\n| `--c2-button__container__focus--outline` | `--c2-theme--focus-ring` | `2px solid rgba(2, 101, 220, 0.4)` |\n| `--c2-button__container__disabled--opacity` | `--c2-theme--disabled-opacity` | `0.38` |\n| `--c2-button__running-icon--animation-duration` | `--c2-theme--motion-scale` | `800ms` |\n\nVariables without a token keep the component default; set them on a class for a variant.",
              "tool": "get_theme"
            }
          ],
          "task": "Show me the c2-button API for attributes, events, and CSS variables, then show how its variables map to theme tokens."
        },
        "type": "noul"
      },
      "w03": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Generated the `alert-button` HTML variant:\n\n```html\n<c2-button class=\"alert-button\">\n  <svg\n    slot=\"prefix-icon\"\n    viewBox=\"0 0 24 24\"\n    fill=\"none\"\n    stroke=\"currentColor\"\n    stroke-width=\"2\"\n    stroke-linecap=\"round\"\n    stroke-linejoin=\"round\"\n  >\n    <path d=\"M5 12h14M12 5l7 7-7 7\"></path>\n  </svg>\n  Continue\n</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>\n```\n\nValidation found **no problems**. Register the element with:\n\n```js\nimport '@c2n/components/button';\n```",
          "done_when": "The transcript shows the generated HTML and style for alert-button and a validation result for that markup.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "css": {
                  "--c2-button__container--background-color": "var(--c2-theme--color-error)"
                },
                "format": "html",
                "name": "alert-button",
                "tag": "c2-button"
              },
              "reply": "## HTML + style\n```html\n<c2-button class=\"alert-button\"><svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M12 5l7 7-7 7\"></path></svg>Continue</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>\n```",
              "tool": "generate_variant"
            },
            {
              "arguments": {
                "code": "<c2-button class=\"alert-button\"><svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M12 5l7 7-7 7\"></path></svg>Continue</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>",
                "filename": "alert-button.html"
              },
              "reply": "No problems found.\n\nThe elements used are registered by:\n\n```ts\nimport '@c2n/components/button'\n```",
              "tool": "validate_markup"
            }
          ],
          "task": "Generate an HTML variant of c2-button named alert-button with the CSS variable --c2-button__container--background-color set to var(--c2-theme--color-error), then validate the generated markup."
        },
        "type": "noul"
      },
      "w04": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Generated the `alert-button` HTML variant:\n\n```html\n<c2-button class=\"alert-button\">\n  <svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\"\n       stroke=\"currentColor\" stroke-width=\"2\"\n       stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path d=\"M5 12h14M12 5l7 7-7 7\"></path>\n  </svg>\n  Continue\n</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>\n```\n\n**Validation:** No problems found. Register the element with:\n\n```js\nimport '@c2n/components/button';\n```",
          "done_when": "The transcript shows the generated HTML and style for alert-button and a validation result for that markup.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "css": {
                  "--c2-button__container--background-color": "var(--c2-theme--color-error)"
                },
                "format": "html",
                "name": "alert-button",
                "tag": "c2-button"
              },
              "reply": "## HTML + style\n```html\n<c2-button class=\"alert-button\"><svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M12 5l7 7-7 7\"></path></svg>Continue</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>\n```",
              "tool": "generate_variant"
            },
            {
              "arguments": {
                "code": "<c2-button class=\"alert-button\"><svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M12 5l7 7-7 7\"></path></svg>Continue</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>",
                "filename": "alert-button.html"
              },
              "reply": "No problems found.\n\nThe elements used are registered by:\n\n```ts\nimport '@c2n/components/button'\n```",
              "tool": "validate_markup"
            }
          ],
          "task": "Generate an HTML variant of c2-button named alert-button with the CSS variable --c2-button__container--background-color set to var(--c2-theme--color-error), then validate the generated markup."
        },
        "type": "noul"
      },
      "w05": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Generated the `alert-button` HTML variant:\n\n```html\n<c2-button class=\"alert-button\">\n  <svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\"\n       stroke=\"currentColor\" stroke-width=\"2\"\n       stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path d=\"M5 12h14M12 5l7 7-7 7\"></path>\n  </svg>\n  Continue\n</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>\n```\n\n**Validation:** No problems found. Register the component with:\n\n```js\nimport '@c2n/components/button';\n```",
          "done_when": "The transcript shows the generated HTML and style for alert-button and a validation result for that markup.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "css": {
                  "--c2-button__container--background-color": "var(--c2-theme--color-error)"
                },
                "format": "html",
                "name": "alert-button",
                "tag": "c2-button"
              },
              "reply": "## HTML + style\n```html\n<c2-button class=\"alert-button\"><svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M12 5l7 7-7 7\"></path></svg>Continue</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>\n```",
              "tool": "generate_variant"
            },
            {
              "arguments": {
                "code": "<c2-button class=\"alert-button\"><svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M12 5l7 7-7 7\"></path></svg>Continue</c2-button>\n\n<style>\n  .alert-button {\n    --c2-button__container--background-color: var(--c2-theme--color-error);\n  }\n</style>",
                "filename": "alert-button.html"
              },
              "reply": "No problems found.\n\nThe elements used are registered by:\n\n```ts\nimport '@c2n/components/button'\n```",
              "tool": "validate_markup"
            }
          ],
          "task": "Generate an HTML variant of c2-button named alert-button with the CSS variable --c2-button__container--background-color set to var(--c2-theme--color-error), then validate the generated markup."
        },
        "type": "noul"
      },
      "w06": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## `c2-button` gallery index\n\nThe gallery contains **40 examples**, grouped below by section. Each entry shows its gallery slug.\n\n**Variants**\n- Default — `variants--default`\n- Soft — `variants--soft`\n- Outline — `variants--outline`\n- Ghost — `variants--ghost`\n- Link — `variants--link`\n- Neutral — `variants--neutral`\n- Danger — `variants--danger`\n- Success — `variants--success`\n- Warning — `variants--warning`\n\n**Sizes**\n- Extra small — `sizes--extra-small`\n- Small — `sizes--small`\n- Medium — `sizes--medium`\n- Large — `sizes--large`\n- Wide — `sizes--wide`\n\n**Shapes**\n- Pill — `shapes--pill`\n- Square — `shapes--square`\n- Extra rounded — `shapes--extra-rounded`\n- Chip — `shapes--chip`\n\n**With icons**\n- Prefix icon — `with-icons--prefix-icon`\n- Suffix icon — `with-icons--suffix-icon`\n- Both icons — `with-icons--both-icons`\n- Tinted icon — `with-icons--tinted-icon`\n\n**Floating actions**\n- Floating action stack — `floating-actions--floating-action-stack`\n\n**With icon components**\n- Feather prefix — `with-icon-components--feather-prefix`\n- Feather suffix — `with-icon-components--feather-suffix`\n- Feather outline — `with-icon-components--feather-outline`\n- Feather danger — `with-icon-components--feather-danger`\n- Feather running icon — `with-icon-components--feather-running-icon`\n- Material prefix — `with-icon-components--material-prefix`\n- Material suffix — `with-icon-components--material-suffix`\n- Material soft — `with-icon-components--material-soft`\n- Mixed icon sets — `with-icon-components--mixed-icon-sets`\n\n**States**\n- Running — `states--running`\n- Slow spinner — `states--slow-spinner`\n- Custom running icon — `states--custom-running-icon`\n- Disabled — `states--disabled`\n- Disabled outline — `states--disabled-outline`\n\n**Groups**\n- Segmented pair — `groups--segmented-pair`\n- Dialog actions — `groups--dialog-actions`\n- Pill toolbar — `groups--pill-toolbar`\n\n## Full example: Dialog actions\n\nThis example styles the Cancel button as an outline action alongside a default Sa",
          "done_when": "The transcript shows the button example index and a full tool reply for a gallery example selected from it.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "kind": "gallery",
                "tag": "c2-button",
                "view": "index"
              },
              "reply": "# Button looks (40)\n\nPick by intent, then fetch one with `get_examples` `{ tag: \"c2-button\", label: \"<slug>\" }`, or start a variant from it with `generate_variant` `{ tag: \"c2-button\", example: \"<slug>\" }`. Gallery CSS follows the `--c2-theme--*` tokens where a colour matches one; any literal left is the card's own accent, so swap it for the application's tokens.\n\n## Variants\n- **Default** `variants--default` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.light.png)\n- **Soft** `variants--soft` — Restyles container background color and container color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--soft.light.png)\n- **Outline** `variants--outline` — Restyles container background color, container color, and container border, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--outline.light.png)\n- **Ghost** `variants--ghost` — Restyles container background color, container color, and container font weight, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--ghost.light.png)\n- **Link** `variants--link` — Restyles container background color, container color, and container padding, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--link.light.png)\n- **Neutral** `variants--neutral` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--neutral.light.png)\n- **Danger** `variants--danger` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--danger.light.png)\n- **Success** `variants--success` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--success.light.png)\n- **Warning** `variants--warning` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--warning.light.png)\n\n## Sizes\n- **Extra small** `sizes--extra-small` — Restyles container height, container padding, container gap, container font size, container border radius, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--extra-small.light.png)\n- **Small** `sizes--small` — Restyles container height, container padding, container gap, container font size, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--small.light.png)\n- **Medium** `sizes--medium` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--medium.light.png)\n- **Large** `sizes--large` — Restyles container height, container padding, container gap, container font size, container border radius, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--large.light.png)\n- **Wide** `sizes--wide` — Restyles container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--wide.light.png)\n\n## Shapes\n- **Pill** `shapes--pill` — Restyles container border radius and container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--pill.light.png)\n- **Square** `shapes--square` — Restyles container border radius. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--square.light.png)\n- **Extra rounded** `shapes--extra-rounded` — Restyles container border radius, container height, and container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--extra-rounded.light.png)\n- **Chip** `shapes--chip` — Restyles container height, container padding, container border radius, container font size, container background color, and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--chip.light.png)\n\n## With icons\n- **Prefix icon** `with-icons--prefix-icon` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--prefix-icon.light.png)\n- **Suffix icon** `with-icons--suffix-icon` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--suffix-icon.light.png)\n- **Both icons** `with-icons--both-icons` — Restyles container background color, container color, and container border, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--both-icons.light.png)\n- **Tinted icon** `with-icons--tinted-icon` — Restyles container background color and icon color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--tinted-icon.light.png)\n\n## Floating actions\n- **Floating action stack** `floating-actions--floating-action-stack` — Restyles container width, container height, container padding, container gap, container border radius, and container border and 3 more, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/floating-actions--floating-action-stack.light.png)\n\n## With icon components\n- **Feather prefix** `with-icon-components--feather-prefix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-prefix.light.png)\n- **Feather suffix** `with-icon-components--feather-suffix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-suffix.light.png)\n- **Feather outline** `with-icon-components--feather-outline` — Restyles container background color, container color, container border, and icon color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-outline.light.png)\n- **Feather danger** `with-icon-components--feather-danger` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-danger.light.png)\n- **Feather running icon** `with-icon-components--feather-running-icon` — Sets running. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-running-icon.light.png)\n- **Material prefix** `with-icon-components--material-prefix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-prefix.light.png)\n- **Material suffix** `with-icon-components--material-suffix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-suffix.light.png)\n- **Material soft** `with-icon-components--material-soft` — Restyles container background color, container color, and icon size, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-soft.light.png)\n- **Mixed icon sets** `with-icon-components--mixed-icon-sets` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--mixed-icon-sets.light.png)\n\n## States\n- **Running** `states--running` — Sets running. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/states--running.light.png)\n- **Slow spinner** `states--slow-spinner` — Res",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "limit": 1,
                "tag": "c2-button",
                "view": "full"
              },
              "reply": "# Button examples (1–1 of 40)\n\n#### Default (gallery · Variants · default without component overrides)\nComponents: `c2-button`\nDemonstrates: Themed default, no overrides.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button>Default</c2-button>\n```\n\nMore: call again with `offset: 1`.",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "limit": 8,
                "offset": 32,
                "tag": "c2-button"
              },
              "reply": "# Button examples (33–40 of 40)\n\n#### Running (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--running.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--running.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button running>Saving…</c2-button>\n```\n\n#### Slow spinner (gallery · States)\nComponents: `c2-button`\nDemonstrates: Restyles running icon animation duration and running icon size. Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--slow-spinner.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--slow-spinner.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"slow\" running>Syncing</c2-button>\n```\n```css\n.slow {\n  --c2-button__running-icon--animation-duration: 1600ms;\n  --c2-button__running-icon--size: 16px;\n}\n```\n\n#### Custom running icon (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--custom-running-icon.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--custom-running-icon.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button running>\n  <svg slot=\"running-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path d=\"M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83\"></path>\n  </svg>\n  Uploading\n</c2-button>\n```\n\n#### Disabled (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets disabled.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button disabled>Disabled</c2-button>\n```\n\n#### Disabled outline (gallery · States)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus disabled state. Sets disabled.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled-outline.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled-outline.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"disabled-outline\" disabled>Disabled</c2-button>\n```\n```css\n.disabled-outline {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__disabled--opacity: 0.5;\n}\n```\n\n#### Segmented pair (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container border radius, container padding, and container gap.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--segmented-pair.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--segmented-pair.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"segmented\">\n  <c2-button class=\"segmented-left\">Publish</c2-button>\n  <c2-button class=\"segmented-right\" aria-label=\"More options\">\n    <svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n      <path d=\"M6 9l6 6 6-6\"></path>\n    </svg>\n  </c2-button>\n</div>\n```\n```css\n.segmented {\n  display: inline-flex;\n  gap: 1px;\n}\n.segmented-left {\n  --c2-button__container--border-radius: 6px 0 0 6px;\n}\n.segmented-right {\n  --c2-button__container--border-radius: 0 6px 6px 0;\n  --c2-button__container--padding-left: 10px;\n  --c2-button__container--padding-right: 10px;\n  --c2-button__container--gap: 0;\n}\n```\n\n#### Dialog actions (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--dialog-actions.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--dialog-actions.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"actions\">\n  <c2-button class=\"actions-cancel\">Cancel</c2-button>\n  <c2-button>Save changes</c2-button>\n</div>\n```\n```css\n.actions {\n  display: inline-flex;\n  gap: 8px;\n}\n.actions-cancel {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface-container, #f4f4f5);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n}\n```\n\n#### Pill toolbar (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container height, container padding, container border radius, container font size, container background color, and container color, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--pill-toolbar.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--pill-toolbar.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"toolbar\">\n  <c2-button class=\"toolbar-item toolbar-item-selected\">Day</c2-button>\n  <c2-button class=\"toolbar-item\">Week</c2-button>\n  <c2-button class=\"toolbar-item\">Month</c2-button>\n</div>\n```\n```css\n.toolbar {\n  display: inline-flex;\n  gap: 6px;\n  padding: 4px;\n  border-radius: 999px;\n  background: var(--c2-theme--color-surface-container, #f4f4f5);\n}\n.toolbar-item {\n  --c2-button__container--height: 30px;\n  --c2-button__container--padding-left: 14px;\n  --c2-button__container--padding-right: 14px;\n  --c2-button__container--border-radius: 999px;\n  --c2-button__container--font-size: 13px;\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: color-mix(in srgb, var(--c2-theme--color-on-surface, #18181b) 74%, var(--c2-theme--color-surface, #ffffff));\n  --c2-button__container__hover--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline, #d4d4d8);\n}\n.toolbar-item-selected {\n  --c2-button__container--background-color: var(--c2-theme--color-surface, #ffffff);\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface, #ffffff);\n}\n```\n",
              "tool": "get_examples"
            }
          ],
          "task": "Find the gallery examples for c2-button, list their index, and show the full markup and CSS for one available gallery example."
        },
        "type": "noul"
      },
      "w07": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## `c2-button` gallery index\n\nThe gallery contains **40 examples**, grouped below by section. The code in parentheses is each example’s gallery slug.\n\n### Variants\n- Default (`variants--default`)\n- Soft (`variants--soft`)\n- Outline (`variants--outline`)\n- Ghost (`variants--ghost`)\n- Link (`variants--link`)\n- Neutral (`variants--neutral`)\n- Danger (`variants--danger`)\n- Success (`variants--success`)\n- Warning (`variants--warning`)\n\n### Sizes\n- Extra small (`sizes--extra-small`)\n- Small (`sizes--small`)\n- Medium (`sizes--medium`)\n- Large (`sizes--large`)\n- Wide (`sizes--wide`)\n\n### Shapes\n- Pill (`shapes--pill`)\n- Square (`shapes--square`)\n- Extra rounded (`shapes--extra-rounded`)\n- Chip (`shapes--chip`)\n\n### With icons\n- Prefix icon (`with-icons--prefix-icon`)\n- Suffix icon (`with-icons--suffix-icon`)\n- Both icons (`with-icons--both-icons`)\n- Tinted icon (`with-icons--tinted-icon`)\n\n### Floating actions\n- Floating action stack (`floating-actions--floating-action-stack`)\n\n### With icon components\n- Feather prefix (`with-icon-components--feather-prefix`)\n- Feather suffix (`with-icon-components--feather-suffix`)\n- Feather outline (`with-icon-components--feather-outline`)\n- Feather danger (`with-icon-components--feather-danger`)\n- Feather running icon (`with-icon-components--feather-running-icon`)\n- Material prefix (`with-icon-components--material-prefix`)\n- Material suffix (`with-icon-components--material-suffix`)\n- Material soft (`with-icon-components--material-soft`)\n- Mixed icon sets (`with-icon-components--mixed-icon-sets`)\n\n### States\n- Running (`states--running`)\n- Slow spinner (`states--slow-spinner`)\n- Custom running icon (`states--custom-running-icon`)\n- Disabled (`states--disabled`)\n- Disabled outline (`states--disabled-outline`)\n\n### Groups\n- Segmented pair (`groups--segmented-pair`)\n- Dialog actions (`groups--dialog-actions`)\n- Pill toolbar (`groups--pill-toolbar`)\n\n## Full example: Outline\n\nThis example changes the button’s background, text color and border",
          "done_when": "The transcript shows the button example index and a full tool reply for a gallery example selected from it.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "kind": "gallery",
                "tag": "c2-button",
                "view": "index"
              },
              "reply": "# Button looks (40)\n\nPick by intent, then fetch one with `get_examples` `{ tag: \"c2-button\", label: \"<slug>\" }`, or start a variant from it with `generate_variant` `{ tag: \"c2-button\", example: \"<slug>\" }`. Gallery CSS follows the `--c2-theme--*` tokens where a colour matches one; any literal left is the card's own accent, so swap it for the application's tokens.\n\n## Variants\n- **Default** `variants--default` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.light.png)\n- **Soft** `variants--soft` — Restyles container background color and container color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--soft.light.png)\n- **Outline** `variants--outline` — Restyles container background color, container color, and container border, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--outline.light.png)\n- **Ghost** `variants--ghost` — Restyles container background color, container color, and container font weight, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--ghost.light.png)\n- **Link** `variants--link` — Restyles container background color, container color, and container padding, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--link.light.png)\n- **Neutral** `variants--neutral` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--neutral.light.png)\n- **Danger** `variants--danger` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--danger.light.png)\n- **Success** `variants--success` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--success.light.png)\n- **Warning** `variants--warning` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--warning.light.png)\n\n## Sizes\n- **Extra small** `sizes--extra-small` — Restyles container height, container padding, container gap, container font size, container border radius, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--extra-small.light.png)\n- **Small** `sizes--small` — Restyles container height, container padding, container gap, container font size, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--small.light.png)\n- **Medium** `sizes--medium` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--medium.light.png)\n- **Large** `sizes--large` — Restyles container height, container padding, container gap, container font size, container border radius, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--large.light.png)\n- **Wide** `sizes--wide` — Restyles container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--wide.light.png)\n\n## Shapes\n- **Pill** `shapes--pill` — Restyles container border radius and container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--pill.light.png)\n- **Square** `shapes--square` — Restyles container border radius. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--square.light.png)\n- **Extra rounded** `shapes--extra-rounded` — Restyles container border radius, container height, and container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--extra-rounded.light.png)\n- **Chip** `shapes--chip` — Restyles container height, container padding, container border radius, container font size, container background color, and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--chip.light.png)\n\n## With icons\n- **Prefix icon** `with-icons--prefix-icon` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--prefix-icon.light.png)\n- **Suffix icon** `with-icons--suffix-icon` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--suffix-icon.light.png)\n- **Both icons** `with-icons--both-icons` — Restyles container background color, container color, and container border, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--both-icons.light.png)\n- **Tinted icon** `with-icons--tinted-icon` — Restyles container background color and icon color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--tinted-icon.light.png)\n\n## Floating actions\n- **Floating action stack** `floating-actions--floating-action-stack` — Restyles container width, container height, container padding, container gap, container border radius, and container border and 3 more, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/floating-actions--floating-action-stack.light.png)\n\n## With icon components\n- **Feather prefix** `with-icon-components--feather-prefix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-prefix.light.png)\n- **Feather suffix** `with-icon-components--feather-suffix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-suffix.light.png)\n- **Feather outline** `with-icon-components--feather-outline` — Restyles container background color, container color, container border, and icon color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-outline.light.png)\n- **Feather danger** `with-icon-components--feather-danger` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-danger.light.png)\n- **Feather running icon** `with-icon-components--feather-running-icon` — Sets running. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-running-icon.light.png)\n- **Material prefix** `with-icon-components--material-prefix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-prefix.light.png)\n- **Material suffix** `with-icon-components--material-suffix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-suffix.light.png)\n- **Material soft** `with-icon-components--material-soft` — Restyles container background color, container color, and icon size, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-soft.light.png)\n- **Mixed icon sets** `with-icon-components--mixed-icon-sets` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--mixed-icon-sets.light.png)\n\n## States\n- **Running** `states--running` — Sets running. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/states--running.light.png)\n- **Slow spinner** `states--slow-spinner` — Res",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "limit": 1,
                "tag": "c2-button",
                "view": "full"
              },
              "reply": "# Button examples (1–1 of 40)\n\n#### Default (gallery · Variants · default without component overrides)\nComponents: `c2-button`\nDemonstrates: Themed default, no overrides.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button>Default</c2-button>\n```\n\nMore: call again with `offset: 1`.",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "limit": 8,
                "offset": 32,
                "tag": "c2-button"
              },
              "reply": "# Button examples (33–40 of 40)\n\n#### Running (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--running.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--running.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button running>Saving…</c2-button>\n```\n\n#### Slow spinner (gallery · States)\nComponents: `c2-button`\nDemonstrates: Restyles running icon animation duration and running icon size. Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--slow-spinner.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--slow-spinner.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"slow\" running>Syncing</c2-button>\n```\n```css\n.slow {\n  --c2-button__running-icon--animation-duration: 1600ms;\n  --c2-button__running-icon--size: 16px;\n}\n```\n\n#### Custom running icon (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--custom-running-icon.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--custom-running-icon.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button running>\n  <svg slot=\"running-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path d=\"M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83\"></path>\n  </svg>\n  Uploading\n</c2-button>\n```\n\n#### Disabled (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets disabled.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button disabled>Disabled</c2-button>\n```\n\n#### Disabled outline (gallery · States)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus disabled state. Sets disabled.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled-outline.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled-outline.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"disabled-outline\" disabled>Disabled</c2-button>\n```\n```css\n.disabled-outline {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__disabled--opacity: 0.5;\n}\n```\n\n#### Segmented pair (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container border radius, container padding, and container gap.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--segmented-pair.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--segmented-pair.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"segmented\">\n  <c2-button class=\"segmented-left\">Publish</c2-button>\n  <c2-button class=\"segmented-right\" aria-label=\"More options\">\n    <svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n      <path d=\"M6 9l6 6 6-6\"></path>\n    </svg>\n  </c2-button>\n</div>\n```\n```css\n.segmented {\n  display: inline-flex;\n  gap: 1px;\n}\n.segmented-left {\n  --c2-button__container--border-radius: 6px 0 0 6px;\n}\n.segmented-right {\n  --c2-button__container--border-radius: 0 6px 6px 0;\n  --c2-button__container--padding-left: 10px;\n  --c2-button__container--padding-right: 10px;\n  --c2-button__container--gap: 0;\n}\n```\n\n#### Dialog actions (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--dialog-actions.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--dialog-actions.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"actions\">\n  <c2-button class=\"actions-cancel\">Cancel</c2-button>\n  <c2-button>Save changes</c2-button>\n</div>\n```\n```css\n.actions {\n  display: inline-flex;\n  gap: 8px;\n}\n.actions-cancel {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface-container, #f4f4f5);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n}\n```\n\n#### Pill toolbar (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container height, container padding, container border radius, container font size, container background color, and container color, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--pill-toolbar.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--pill-toolbar.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"toolbar\">\n  <c2-button class=\"toolbar-item toolbar-item-selected\">Day</c2-button>\n  <c2-button class=\"toolbar-item\">Week</c2-button>\n  <c2-button class=\"toolbar-item\">Month</c2-button>\n</div>\n```\n```css\n.toolbar {\n  display: inline-flex;\n  gap: 6px;\n  padding: 4px;\n  border-radius: 999px;\n  background: var(--c2-theme--color-surface-container, #f4f4f5);\n}\n.toolbar-item {\n  --c2-button__container--height: 30px;\n  --c2-button__container--padding-left: 14px;\n  --c2-button__container--padding-right: 14px;\n  --c2-button__container--border-radius: 999px;\n  --c2-button__container--font-size: 13px;\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: color-mix(in srgb, var(--c2-theme--color-on-surface, #18181b) 74%, var(--c2-theme--color-surface, #ffffff));\n  --c2-button__container__hover--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline, #d4d4d8);\n}\n.toolbar-item-selected {\n  --c2-button__container--background-color: var(--c2-theme--color-surface, #ffffff);\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface, #ffffff);\n}\n```\n",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "label": "variants--outline",
                "tag": "c2-button"
              },
              "reply": "# Button examples (1–1 of 1)\n\n#### Outline (gallery · Variants)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--outline.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--outline.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"outline\">Outline</c2-button>\n```\n```css\n.outline {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface-container, #f4f4f5);\n  --c2-button__container__hover--border: 1px solid var(--c2-theme--color-outline-strong, #a1a1aa);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n}\n```\n",
              "tool": "get_examples"
            }
          ],
          "task": "Find the gallery examples for c2-button, list their index, and show the full markup and CSS for one available gallery example."
        },
        "type": "noul"
      },
      "w08": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## `c2-button` gallery index\n\nThe gallery contains **40 examples**. Slugs can be used to retrieve a specific example.\n\n### Variants\n- Default — `variants--default`\n- Soft — `variants--soft`\n- Outline — `variants--outline`\n- Ghost — `variants--ghost`\n- Link — `variants--link`\n- Neutral — `variants--neutral`\n- Danger — `variants--danger`\n- Success — `variants--success`\n- Warning — `variants--warning`\n\n### Sizes\n- Extra small — `sizes--extra-small`\n- Small — `sizes--small`\n- Medium — `sizes--medium`\n- Large — `sizes--large`\n- Wide — `sizes--wide`\n\n### Shapes\n- Pill — `shapes--pill`\n- Square — `shapes--square`\n- Extra rounded — `shapes--extra-rounded`\n- Chip — `shapes--chip`\n\n### With icons\n- Prefix icon — `with-icons--prefix-icon`\n- Suffix icon — `with-icons--suffix-icon`\n- Both icons — `with-icons--both-icons`\n- Tinted icon — `with-icons--tinted-icon`\n\n### Floating actions\n- Floating action stack — `floating-actions--floating-action-stack`\n\n### With icon components\n- Feather prefix — `with-icon-components--feather-prefix`\n- Feather suffix — `with-icon-components--feather-suffix`\n- Feather outline — `with-icon-components--feather-outline`\n- Feather danger — `with-icon-components--feather-danger`\n- Feather running icon — `with-icon-components--feather-running-icon`\n- Material prefix — `with-icon-components--material-prefix`\n- Material suffix — `with-icon-components--material-suffix`\n- Material soft — `with-icon-components--material-soft`\n- Mixed icon sets — `with-icon-components--mixed-icon-sets`\n\n### States\n- Running — `states--running`\n- Slow spinner — `states--slow-spinner`\n- Custom running icon — `states--custom-running-icon`\n- Disabled — `states--disabled`\n- Disabled outline — `states--disabled-outline`\n\n### Groups\n- Segmented pair — `groups--segmented-pair`\n- Dialog actions — `groups--dialog-actions`\n- Pill toolbar — `groups--pill-toolbar`\n\n## Full example: Outline\n\nThis example changes the background, text color and border, with separate hover and active styles. ",
          "done_when": "The transcript shows the button example index and a full tool reply for a gallery example selected from it.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "kind": "gallery",
                "tag": "c2-button",
                "view": "index"
              },
              "reply": "# Button looks (40)\n\nPick by intent, then fetch one with `get_examples` `{ tag: \"c2-button\", label: \"<slug>\" }`, or start a variant from it with `generate_variant` `{ tag: \"c2-button\", example: \"<slug>\" }`. Gallery CSS follows the `--c2-theme--*` tokens where a colour matches one; any literal left is the card's own accent, so swap it for the application's tokens.\n\n## Variants\n- **Default** `variants--default` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.light.png)\n- **Soft** `variants--soft` — Restyles container background color and container color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--soft.light.png)\n- **Outline** `variants--outline` — Restyles container background color, container color, and container border, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--outline.light.png)\n- **Ghost** `variants--ghost` — Restyles container background color, container color, and container font weight, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--ghost.light.png)\n- **Link** `variants--link` — Restyles container background color, container color, and container padding, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--link.light.png)\n- **Neutral** `variants--neutral` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--neutral.light.png)\n- **Danger** `variants--danger` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--danger.light.png)\n- **Success** `variants--success` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--success.light.png)\n- **Warning** `variants--warning` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--warning.light.png)\n\n## Sizes\n- **Extra small** `sizes--extra-small` — Restyles container height, container padding, container gap, container font size, container border radius, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--extra-small.light.png)\n- **Small** `sizes--small` — Restyles container height, container padding, container gap, container font size, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--small.light.png)\n- **Medium** `sizes--medium` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--medium.light.png)\n- **Large** `sizes--large` — Restyles container height, container padding, container gap, container font size, container border radius, and icon size. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--large.light.png)\n- **Wide** `sizes--wide` — Restyles container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/sizes--wide.light.png)\n\n## Shapes\n- **Pill** `shapes--pill` — Restyles container border radius and container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--pill.light.png)\n- **Square** `shapes--square` — Restyles container border radius. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--square.light.png)\n- **Extra rounded** `shapes--extra-rounded` — Restyles container border radius, container height, and container padding. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--extra-rounded.light.png)\n- **Chip** `shapes--chip` — Restyles container height, container padding, container border radius, container font size, container background color, and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/shapes--chip.light.png)\n\n## With icons\n- **Prefix icon** `with-icons--prefix-icon` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--prefix-icon.light.png)\n- **Suffix icon** `with-icons--suffix-icon` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--suffix-icon.light.png)\n- **Both icons** `with-icons--both-icons` — Restyles container background color, container color, and container border, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--both-icons.light.png)\n- **Tinted icon** `with-icons--tinted-icon` — Restyles container background color and icon color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icons--tinted-icon.light.png)\n\n## Floating actions\n- **Floating action stack** `floating-actions--floating-action-stack` — Restyles container width, container height, container padding, container gap, container border radius, and container border and 3 more, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/floating-actions--floating-action-stack.light.png)\n\n## With icon components\n- **Feather prefix** `with-icon-components--feather-prefix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-prefix.light.png)\n- **Feather suffix** `with-icon-components--feather-suffix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-suffix.light.png)\n- **Feather outline** `with-icon-components--feather-outline` — Restyles container background color, container color, container border, and icon color, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-outline.light.png)\n- **Feather danger** `with-icon-components--feather-danger` — Restyles container background color and container color, plus hover, active, and focus states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-danger.light.png)\n- **Feather running icon** `with-icon-components--feather-running-icon` — Sets running. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--feather-running-icon.light.png)\n- **Material prefix** `with-icon-components--material-prefix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-prefix.light.png)\n- **Material suffix** `with-icon-components--material-suffix` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-suffix.light.png)\n- **Material soft** `with-icon-components--material-soft` — Restyles container background color, container color, and icon size, plus hover and active states. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--material-soft.light.png)\n- **Mixed icon sets** `with-icon-components--mixed-icon-sets` — Themed default, no overrides. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/with-icon-components--mixed-icon-sets.light.png)\n\n## States\n- **Running** `states--running` — Sets running. [look](https://code2nguyen.github.io/web-components/gallery-shots/button/states--running.light.png)\n- **Slow spinner** `states--slow-spinner` — Res",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "limit": 1,
                "tag": "c2-button",
                "view": "full"
              },
              "reply": "# Button examples (1–1 of 40)\n\n#### Default (gallery · Variants · default without component overrides)\nComponents: `c2-button`\nDemonstrates: Themed default, no overrides.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--default.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button>Default</c2-button>\n```\n\nMore: call again with `offset: 1`.",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "limit": 10,
                "offset": 33,
                "tag": "c2-button"
              },
              "reply": "# Button examples (34–40 of 40)\n\n#### Slow spinner (gallery · States)\nComponents: `c2-button`\nDemonstrates: Restyles running icon animation duration and running icon size. Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--slow-spinner.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--slow-spinner.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"slow\" running>Syncing</c2-button>\n```\n```css\n.slow {\n  --c2-button__running-icon--animation-duration: 1600ms;\n  --c2-button__running-icon--size: 16px;\n}\n```\n\n#### Custom running icon (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets running.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--custom-running-icon.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--custom-running-icon.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button running>\n  <svg slot=\"running-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n    <path d=\"M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83\"></path>\n  </svg>\n  Uploading\n</c2-button>\n```\n\n#### Disabled (gallery · States)\nComponents: `c2-button`\nDemonstrates: Sets disabled.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button disabled>Disabled</c2-button>\n```\n\n#### Disabled outline (gallery · States)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus disabled state. Sets disabled.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled-outline.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/states--disabled-outline.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"disabled-outline\" disabled>Disabled</c2-button>\n```\n```css\n.disabled-outline {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__disabled--opacity: 0.5;\n}\n```\n\n#### Segmented pair (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container border radius, container padding, and container gap.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--segmented-pair.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--segmented-pair.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"segmented\">\n  <c2-button class=\"segmented-left\">Publish</c2-button>\n  <c2-button class=\"segmented-right\" aria-label=\"More options\">\n    <svg slot=\"prefix-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n      <path d=\"M6 9l6 6 6-6\"></path>\n    </svg>\n  </c2-button>\n</div>\n```\n```css\n.segmented {\n  display: inline-flex;\n  gap: 1px;\n}\n.segmented-left {\n  --c2-button__container--border-radius: 6px 0 0 6px;\n}\n.segmented-right {\n  --c2-button__container--border-radius: 0 6px 6px 0;\n  --c2-button__container--padding-left: 10px;\n  --c2-button__container--padding-right: 10px;\n  --c2-button__container--gap: 0;\n}\n```\n\n#### Dialog actions (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--dialog-actions.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--dialog-actions.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"actions\">\n  <c2-button class=\"actions-cancel\">Cancel</c2-button>\n  <c2-button>Save changes</c2-button>\n</div>\n```\n```css\n.actions {\n  display: inline-flex;\n  gap: 8px;\n}\n.actions-cancel {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface-container, #f4f4f5);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n}\n```\n\n#### Pill toolbar (gallery · Groups)\nComponents: `c2-button`\nDemonstrates: Restyles container height, container padding, container border radius, container font size, container background color, and container color, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--pill-toolbar.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/groups--pill-toolbar.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<div class=\"toolbar\">\n  <c2-button class=\"toolbar-item toolbar-item-selected\">Day</c2-button>\n  <c2-button class=\"toolbar-item\">Week</c2-button>\n  <c2-button class=\"toolbar-item\">Month</c2-button>\n</div>\n```\n```css\n.toolbar {\n  display: inline-flex;\n  gap: 6px;\n  padding: 4px;\n  border-radius: 999px;\n  background: var(--c2-theme--color-surface-container, #f4f4f5);\n}\n.toolbar-item {\n  --c2-button__container--height: 30px;\n  --c2-button__container--padding-left: 14px;\n  --c2-button__container--padding-right: 14px;\n  --c2-button__container--border-radius: 999px;\n  --c2-button__container--font-size: 13px;\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: color-mix(in srgb, var(--c2-theme--color-on-surface, #18181b) 74%, var(--c2-theme--color-surface, #ffffff));\n  --c2-button__container__hover--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline, #d4d4d8);\n}\n.toolbar-item-selected {\n  --c2-button__container--background-color: var(--c2-theme--color-surface, #ffffff);\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface, #ffffff);\n}\n```\n",
              "tool": "get_examples"
            },
            {
              "arguments": {
                "kind": "gallery",
                "label": "variants--outline",
                "tag": "c2-button"
              },
              "reply": "# Button examples (1–1 of 1)\n\n#### Outline (gallery · Variants)\nComponents: `c2-button`\nDemonstrates: Restyles container background color, container color, and container border, plus hover and active states.\nLook: [light](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--outline.light.png) · [dark](https://code2nguyen.github.io/web-components/gallery-shots/button/variants--outline.dark.png) · [live](https://code2nguyen.github.io/web-components/components/button/gallery)\n```html\n<c2-button class=\"outline\">Outline</c2-button>\n```\n```css\n.outline {\n  --c2-button__container--background-color: transparent;\n  --c2-button__container--color: var(--c2-theme--color-on-surface, #18181b);\n  --c2-button__container--border: 1px solid var(--c2-theme--color-outline, #d4d4d8);\n  --c2-button__container__hover--background-color: var(--c2-theme--color-surface-container, #f4f4f5);\n  --c2-button__container__hover--border: 1px solid var(--c2-theme--color-outline-strong, #a1a1aa);\n  --c2-button__container__active--background-color: var(--c2-theme--color-outline-variant, #e4e4e7);\n}\n```\n",
              "tool": "get_examples"
            }
          ],
          "task": "Find the gallery examples for c2-button, list their index, and show the full markup and CSS for one available gallery example."
        },
        "type": "noul"
      }
    },
    "state": {
      "about": "Replies of an MCP server to tool calls that were sent with bad input on purpose, to see whether its error messages help a caller fix the call."
    }
  },
  "run_id": "01M835SA1190BFKWVH9856DA6X",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.88,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.82,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.84,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.98,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.98,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.98,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.9,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.96,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.96,
      "question": "w08"
    }
  ]
}
