{
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"schedule": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Unique identifier for the returned record."
},
"project_id": {
"type": "string",
"format": "uuid",
"description": "Project identifier associated with this result."
},
"name": {
"type": "string",
"description": "Human-readable name for the returned record."
},
"status": {
"type": "string",
"enum": [
"active",
"paused",
"deleting"
],
"description": "Lifecycle status for the returned record."
},
"target": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"task",
"workflow",
"agent"
],
"description": "The kind associated with this record."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Unique identifier for the record."
},
"conversation_mode": {
"type": "string",
"enum": [
"create_new",
"existing",
"none"
],
"description": "Conversation behaviour for an agent target. Defaults to none. Use create_new for an agent that delegates with invoke_agent - a run with no conversation cannot be paused for delegation."
},
"conversation_id": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"description": "Conversation identifier associated with the record."
},
{
"type": "null",
"description": "Conversation identifier associated with this result."
}
],
"description": "Existing conversation to continue. Only allowed when conversation_mode is existing, and required in that case."
}
},
"required": [
"kind",
"id"
],
"additionalProperties": false,
"description": "The target associated with this record."
},
"schedule": {
"type": "string"
},
"timezone": {
"type": "string"
},
"runtime_target_kind": {
"type": "string",
"enum": [
"main_branch",
"environment",
"preview_branch"
],
"description": "The runtime target kind associated with this record."
},
"runtime_target_environment_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null",
"description": "The runtime target environment id returned by the tool."
}
]
},
"runtime_target_branch_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null",
"description": "The runtime target branch id returned by the tool."
}
]
},
"config": {
"type": "object",
"additionalProperties": {
"description": "Additional structured values associated with this result."
},
"description": "Structured config details associated with this tool result."
},
"timeout_seconds": {
"type": "integer"
},
"backoff_limit": {
"type": "integer"
},
"concurrency_policy": {
"type": "string"
},
"definition_source": {
"type": "string",
"enum": [
"manual",
"source"
]
},
"source_trigger_id": {
"type": [
"string",
"null"
]
},
"source_path": {
"type": [
"string",
"null"
]
},
"source_hash": {
"type": [
"string",
"null"
]
},
"last_scheduled_at": {
"type": [
"string",
"null"
]
},
"last_successful_at": {
"type": [
"string",
"null"
]
},
"health": {
"anyOf": [
{
"type": "object",
"properties": {
"maxStalenessSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The max staleness seconds associated with this record."
}
},
"required": [
"maxStalenessSeconds"
],
"additionalProperties": false,
"description": "Structured health details associated with this record."
},
{
"type": "null",
"description": "The health returned by the tool."
}
]
},
"max_runs": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0
},
{
"type": "null",
"description": "The max runs returned by the tool."
}
]
},
"run_count": {
"type": "integer",
"minimum": 0
},
"completed_at": {
"type": [
"string",
"null"
]
},
"paused_reason": {
"type": [
"string",
"null"
]
},
"paused_at": {
"type": [
"string",
"null"
]
},
"last_failure_at": {
"type": [
"string",
"null"
]
},
"last_failure_code": {
"type": [
"string",
"null"
]
},
"last_failure_message": {
"type": [
"string",
"null"
]
},
"last_failure_run_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null",
"description": "The last failure run id returned by the tool."
}
]
},
"created_by": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null",
"description": "The created by returned by the tool."
}
]
},
"integration_requirements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"integration": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^[a-z0-9][a-z0-9_-]*$",
"description": "The integration associated with this record."
},
"required_scopes": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "One required scope item associated with this record."
},
"maxItems": 50,
"description": "The required scopes associated with this record.",
"default": []
},
"resources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z][a-z0-9_-]*$",
"description": "The kind associated with this record."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Unique identifier for the record."
},
"parent": {
"type": "object",
"properties": {
"kind": {
"$ref": "#/properties/schedule/properties/integration_requirements/items/properties/resources/items/properties/kind",
"description": "The kind returned by the tool."
},
"id": {
"$ref": "#/properties/schedule/properties/integration_requirements/items/properties/resources/items/properties/id",
"description": "Unique identifier for the returned record."
}
},
"required": [
"kind",
"id"
],
"additionalProperties": false,
"description": "The parent associated with this record."
}
},
"required": [
"kind",
"id"
],
"additionalProperties": false,
"description": "One resource item associated with this record."
},
"maxItems": 50,
"description": "The resources associated with this record.",
"default": []
}
},
"required": [
"integration"
],
"additionalProperties": false,
"description": "One integration requirement item associated with this record."
},
"maxItems": 20,
"default": []
},
"created_at": {
"type": "string",
"description": "Creation timestamp in ISO 8601 format."
},
"updated_at": {
"type": "string",
"description": "Last update timestamp in ISO 8601 format."
}
},
"required": [
"id",
"project_id",
"name",
"status",
"target",
"schedule",
"timezone",
"runtime_target_kind",
"runtime_target_environment_id",
"runtime_target_branch_id",
"config",
"timeout_seconds",
"backoff_limit",
"concurrency_policy",
"definition_source",
"source_trigger_id",
"source_path",
"source_hash",
"last_scheduled_at",
"last_successful_at",
"health",
"max_runs",
"run_count",
"completed_at",
"paused_reason",
"paused_at",
"last_failure_at",
"last_failure_code",
"last_failure_message",
"last_failure_run_id",
"created_by",
"created_at",
"updated_at"
],
"additionalProperties": false,
"description": "Structured schedule details associated with this tool result."
}
},
"required": [
"ok",
"schedule"
],
"additionalProperties": false,
"description": "Structured result returned by the delete_schedule tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}