Skip to content

Generate Executable Examples

Each section provides one runnable baseline call, expected response shape, and one failure example with a concrete fix. Use these as copy/paste starters and then adjust for your page or workflow.

{
"tool": "generate",
"arguments": {
"what": "reproduction"
}
}
ParameterTypeDescription
whatstringMode name to execute.
tab_idnumberOptional target browser tab.
telemetry_modestringOptional telemetry verbosity: off, auto, full.
{
"tool": "generate",
"arguments": {
"what": "reproduction",
"mode": "playwright",
"include_screenshots": true
}
}
{
"what": "reproduction",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "reproduction",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"mode": "playwright",
"include_screenshots": true
}
}

Fix: Use a valid generate mode value, e.g. reproduction.

{
"tool": "generate",
"arguments": {
"what": "test",
"test_name": "checkout-smoke"
}
}
{
"what": "test",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "test",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"test_name": "checkout-smoke"
}
}

Fix: Use a valid generate mode value, e.g. test.

{
"tool": "generate",
"arguments": {
"what": "pr_summary"
}
}
{
"what": "pr_summary",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "pr_summary",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode"
}
}

Fix: Use a valid generate mode value, e.g. pr_summary.

{
"tool": "generate",
"arguments": {
"what": "har",
"url": "/api",
"status_min": 400
}
}
{
"what": "har",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "har",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "har",
"url": 404,
"status_min": 400
}
}

Fix: Use a fully qualified URL string, e.g. https://example.com.

{
"tool": "generate",
"arguments": {
"what": "csp",
"include_report_uri": true
}
}
{
"what": "csp",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "csp",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"include_report_uri": true
}
}

Fix: Use a valid generate mode value, e.g. csp.

{
"tool": "generate",
"arguments": {
"what": "sri",
"resource_types": [
"script",
"stylesheet"
]
}
}
{
"what": "sri",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "sri",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"resource_types": [
"script",
"stylesheet"
]
}
}

Fix: Use a valid generate mode value, e.g. sri.

{
"tool": "generate",
"arguments": {
"what": "sarif",
"scope": "#main"
}
}
{
"what": "sarif",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "sarif",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"scope": "#main"
}
}

Fix: Use a valid generate mode value, e.g. sarif.

{
"tool": "generate",
"arguments": {
"what": "visual_test",
"test_name": "landing-visual-check"
}
}
{
"what": "visual_test",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "visual_test",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"test_name": "landing-visual-check"
}
}

Fix: Use a valid generate mode value, e.g. visual_test.

{
"tool": "generate",
"arguments": {
"what": "annotation_report",
"annot_session": "landing-review"
}
}
{
"what": "annotation_report",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "annotation_report",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"annot_session": "landing-review"
}
}

Fix: Use a valid generate mode value, e.g. annotation_report.

{
"tool": "generate",
"arguments": {
"what": "annotation_issues",
"annot_session": "landing-review"
}
}
{
"what": "annotation_issues",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "annotation_issues",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"annot_session": "landing-review"
}
}

Fix: Use a valid generate mode value, e.g. annotation_issues.

{
"tool": "generate",
"arguments": {
"what": "test_from_context",
"context": "Checkout button click does nothing"
}
}
{
"what": "test_from_context",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "test_from_context",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"context": "Checkout button click does nothing"
}
}

Fix: Use a valid generate mode value, e.g. test_from_context.

{
"tool": "generate",
"arguments": {
"what": "test_heal",
"action": "analyze",
"test_file": "tests/e2e/checkout.spec.ts"
}
}
{
"what": "test_heal",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "test_heal",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"action": "analyze",
"test_file": "tests/e2e/checkout.spec.ts"
}
}

Fix: Use a valid generate mode value, e.g. test_heal.

{
"tool": "generate",
"arguments": {
"what": "test_classify",
"action": "failure",
"failure": {
"test_name": "checkout should submit",
"error": "Timeout 30000ms exceeded while waiting for selector text=Confirm"
}
}
}
{
"what": "test_classify",
"content": [
{
"type": "text",
"text": "Generated artifact summary"
}
],
"artifact": {
"format": "test_classify",
"path": ".gasoline/reports/sample.out"
}
}
{
"tool": "generate",
"arguments": {
"what": "not_a_real_mode",
"action": "failure",
"failure": {
"test_name": "checkout should submit",
"error": "Timeout 30000ms exceeded while waiting for selector text=Confirm"
}
}
}

Fix: Use a valid generate mode value, e.g. test_classify.