Overview
- Category
- Text Tools
- 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/random-sentence-generator
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/random-sentence-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.
topic· string · required-
Enter topic. Accepted values:
technology, nature, work, learning. quantity· number · required- Enter sentences.
seed· number · required- Enter reproducible seed.
{
"type": "object",
"properties": {
"topic": {
"type": "string",
"description": "Enter topic.",
"enum": [
"technology",
"nature",
"work",
"learning"
]
},
"quantity": {
"type": "number",
"description": "Enter sentences."
},
"seed": {
"type": "number",
"description": "Enter reproducible seed."
}
},
"required": [
"topic",
"quantity",
"seed"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
text· string- Generated sentences produced by the tool.
words· number- Word count produced by the tool.
sentences· number- Sentence count produced by the tool.
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Generated sentences produced by the tool."
},
"words": {
"type": "number",
"description": "Word count produced by the tool."
},
"sentences": {
"type": "number",
"description": "Sentence count produced by the tool."
}
},
"additionalProperties": false
}
Random Sentence 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/random-sentence-generator/execute" \
-H "Content-Type: application/json" \
-d '{
"topic": "nature",
"quantity": 8,
"seed": 42
}'
{
"ok": true,
"data": {
"slug": "random-sentence-generator",
"result": {
"values": {
"text": "River cloud forest meadow river meadow river willow trail willow. Harbor willow cloud river forest trail trail trail cloud forest cloud. Trail willow forest willow meadow river river cloud willow willow. Meadow cloud harbor harbor harbor trail meadow river forest meadow forest willow cloud. Meadow forest stone river stone stone trail trail forest willow cloud stone stone forest. River trail willow meadow harbor stone river cloud river forest cloud harbor meadow forest forest. Trail willow harbor willow meadow forest forest cloud harbor trail meadow harbor meadow. River willow trail willow forest meadow stone meadow.",
"words": 94,
"sentences": 8
},
"display": {
"display": "River cloud forest meadow river meadow river willow trail willow. Harbor willow cloud river forest trail trail trail cloud forest cloud. Trail willow forest willow meadow river river cloud willow willow. Meadow cloud harbor harbor harbor trail meadow river forest meadow forest willow cloud. Meadow forest stone river stone stone trail trail forest willow cloud stone stone forest. River trail willow meadow harbor stone river cloud river forest cloud harbor meadow forest forest. Trail willow harbor willow meadow forest forest cloud harbor trail meadow harbor meadow. River willow trail willow forest meadow stone meadow."
},
"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.