← All tool references

Productivity · not_available

Focus Session Planner

Calculate session schedule from start time, focus interval, break interval, focus sessions.

Open public tool

Overview

Category
Productivity
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/focus-session-planner

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/focus-session-planner/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.

start_time · string · required
Enter start time.
focus_minutes · number · required
Enter focus interval.
break_minutes · number · required
Enter break interval.
sessions · number · required
Enter focus sessions.
{
    "type": "object",
    "properties": {
        "start_time": {
            "type": "string",
            "description": "Enter start time."
        },
        "focus_minutes": {
            "type": "number",
            "description": "Enter focus interval."
        },
        "break_minutes": {
            "type": "number",
            "description": "Enter break interval."
        },
        "sessions": {
            "type": "number",
            "description": "Enter focus sessions."
        }
    },
    "required": [
        "start_time",
        "focus_minutes",
        "break_minutes",
        "sessions"
    ],
    "additionalProperties": false
}

Output schema

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

schedule · array
Session schedule produced by the tool.
total_focus · number
Total focus time produced by the tool.
finish_time · string
Finish time produced by the tool.
{
    "type": "object",
    "properties": {
        "schedule": {
            "type": "array",
            "description": "Session schedule produced by the tool."
        },
        "total_focus": {
            "type": "number",
            "description": "Total focus time produced by the tool."
        },
        "finish_time": {
            "type": "string",
            "description": "Finish time produced by the tool."
        }
    },
    "additionalProperties": false
}

Focus Session Planner 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/focus-session-planner/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "start_time": "09:00",
    "focus_minutes": 50,
    "break_minutes": 10,
    "sessions": 4
}'
{
    "ok": true,
    "data": {
        "slug": "focus-session-planner",
        "result": {
            "values": {
                "schedule": [
                    {
                        "session": 1,
                        "type": "Focus",
                        "start": "09:00",
                        "end": "09:50",
                        "minutes": 50
                    },
                    {
                        "session": 1,
                        "type": "Break",
                        "start": "09:50",
                        "end": "10:00",
                        "minutes": 10
                    },
                    {
                        "session": 2,
                        "type": "Focus",
                        "start": "10:00",
                        "end": "10:50",
                        "minutes": 50
                    },
                    {
                        "session": 2,
                        "type": "Break",
                        "start": "10:50",
                        "end": "11:00",
                        "minutes": 10
                    },
                    {
                        "session": 3,
                        "type": "Focus",
                        "start": "11:00",
                        "end": "11:50",
                        "minutes": 50
                    },
                    {
                        "session": 3,
                        "type": "Break",
                        "start": "11:50",
                        "end": "12:00",
                        "minutes": 10
                    },
                    {
                        "session": 4,
                        "type": "Focus",
                        "start": "12:00",
                        "end": "12:50",
                        "minutes": 50
                    }
                ],
                "total_focus": 200,
                "finish_time": "12:50"
            },
            "display": {
                "display": "[{\"session\":1,\"type\":\"Focus\",\"start\":\"09:00\",\"end\":\"09:50\",\"minutes\":50},{\"session\":1,\"type\":\"Break\",\"start\":\"09:50\",\"end\":\"10:00\",\"minutes\":10},{\"session\":2,\"type\":\"Focus\",\"start\":\"10:00\",\"end\":\"10:50\",\"minutes\":50},{\"session\":2,\"type\":\"Break\",\"start\":\"10:50\",\"end\":\"11:00\",\"minutes\":10},{\"session\":3,\"type\":\"Focus\",\"start\":\"11:00\",\"end\":\"11:50\",\"minutes\":50},{\"session\":3,\"type\":\"Break\",\"start\":\"11:50\",\"end\":\"12:00\",\"minutes\":10},{\"session\":4,\"type\":\"Focus\",\"start\":\"12:00\",\"end\":\"12:50\",\"minutes\":50}]"
            },
            "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.