← All tool references

Generators · not_available

Writing Prompt Generator

Writing Prompt with transparent inputs and reviewable results.

Open public tool

Overview

Category
Generators
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/writing-prompt-generator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/writing-prompt-generator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

genre · string · required
Enter genre. Accepted values: fiction, poetry, memoir, essay.
tone · string · required
Enter tone. Accepted values: curious, tense, hopeful, comic.
quantity · number · required
Enter prompts.
seed_word · string · optional
Enter optional seed word.
{
    "type": "object",
    "properties": {
        "genre": {
            "type": "string",
            "description": "Enter genre.",
            "enum": [
                "fiction",
                "poetry",
                "memoir",
                "essay"
            ]
        },
        "tone": {
            "type": "string",
            "description": "Enter tone.",
            "enum": [
                "curious",
                "tense",
                "hopeful",
                "comic"
            ]
        },
        "quantity": {
            "type": "number",
            "description": "Enter prompts."
        },
        "seed_word": {
            "type": "string",
            "description": "Enter optional seed word."
        }
    },
    "required": [
        "genre",
        "tone",
        "quantity"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

prompts · array
Writing prompts produced by the tool.
quantity · number
Prompt count produced by the tool.
ingredients · array
Prompt ingredients produced by the tool.
{
    "type": "object",
    "properties": {
        "prompts": {
            "type": "array",
            "description": "Writing prompts produced by the tool."
        },
        "quantity": {
            "type": "number",
            "description": "Prompt count produced by the tool."
        },
        "ingredients": {
            "type": "array",
            "description": "Prompt ingredients produced by the tool."
        }
    },
    "additionalProperties": false
}

Writing Prompt Generator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/writing-prompt-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "genre": "fiction",
    "tone": "curious",
    "quantity": 8,
    "seed_word": "harbor"
}'
{
    "ok": true,
    "data": {
        "slug": "writing-prompt-generator",
        "result": {
            "values": {
                "prompts": [
                    {
                        "number": 1,
                        "prompt": "Include “harbor”. In an empty station, an object disappears; include a list. Tone: curious."
                    },
                    {
                        "number": 2,
                        "prompt": "Include “harbor”. In an empty station, two memories disagree; begin with dialogue. Tone: curious."
                    },
                    {
                        "number": 3,
                        "prompt": "Include “harbor”. In a quiet harbor, a promise is tested; begin with dialogue. Tone: curious."
                    },
                    {
                        "number": 4,
                        "prompt": "Include “harbor”. In a quiet harbor, an object disappears; end on a sensory image. Tone: curious."
                    },
                    {
                        "number": 5,
                        "prompt": "Include “harbor”. In a flooded archive, a deadline changes everything; end on a sensory image. Tone: curious."
                    },
                    {
                        "number": 6,
                        "prompt": "Include “harbor”. In a quiet harbor, a deadline changes everything; use an unreliable narrator. Tone: curious."
                    },
                    {
                        "number": 7,
                        "prompt": "Include “harbor”. In a rooftop garden, a deadline changes everything; end on a sensory image. Tone: curious."
                    },
                    {
                        "number": 8,
                        "prompt": "Include “harbor”. In a rooftop garden, a deadline changes everything; end on a sensory image. Tone: curious."
                    }
                ],
                "quantity": 8,
                "ingredients": [
                    {
                        "type": "Genre",
                        "value": "fiction"
                    },
                    {
                        "type": "Tone",
                        "value": "curious"
                    },
                    {
                        "type": "Seed",
                        "value": "harbor"
                    }
                ]
            },
            "display": {
                "display": "[{\"number\":1,\"prompt\":\"Include “harbor”. In an empty station, an object disappears; include a list. Tone: curious.\"},{\"number\":2,\"prompt\":\"Include “harbor”. In an empty station, two memories disagree; begin with dialogue. Tone: curious.\"},{\"number\":3,\"prompt\":\"Include “harbor”. In a quiet harbor, a promise is tested; begin with dialogue. Tone: curious.\"},{\"number\":4,\"prompt\":\"Include “harbor”. In a quiet harbor, an object disappears; end on a sensory image. Tone: curious.\"},{\"number\":5,\"prompt\":\"Include “harbor”. In a flooded archive, a deadline changes everything; end on a sensory image. Tone: curious.\"},{\"number\":6,\"prompt\":\"Include “harbor”. In a quiet harbor, a deadline changes everything; use an unreliable narrator. Tone: curious.\"},{\"number\":7,\"prompt\":\"Include “harbor”. In a rooftop garden, a deadline changes everything; end on a sensory image. Tone: curious.\"},{\"number\":8,\"prompt\":\"Include “harbor”. In a rooftop garden, a deadline changes everything; end on a sensory image. Tone: curious.\"}]"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.