Indices Task Management
When To Use
Use this skill for:
indices tasks createindices tasks listindices tasks getindices tasks retryindices tasks regenerate-apiindices tasks delete
Create Task
Argument mode (default)
indices tasks create \
--display-name "Apply to jobs" \
--website "https://jobs.example.com" \
--task "Fill and submit the form"
indices --json tasks create \
--display-name "Apply to jobs" \
--website "https://jobs.example.com" \
--task "Fill and submit the form"
Never set
is_fully_autonomoustotrue(in any argument mode)
Argument-mode flags:
--display-name <string>(required)--website <url>(required)--task <string>(required)--input-schema <string>--output-schema <string>--creation-params <json-object>
Task-creation rules:
- Prefer the simple form above. Do not pass
--creation-paramsunless you need a specific advanced option. - Schema auto-generation is the default. Leave it enabled unless you are intentionally providing manual schemas.
- If you disable schema auto-generation with
{"auto_generate_schemas":false}, you must also provide bothinput_schemaandoutput_schemaor the API returns422. - If you provide manual schemas, provide both
--input-schemaand--output-schema.
Explicit JSON source
indices tasks create --body '{"display_name":"Apply","website":"https://jobs.example.com","task":"Submit form","creation_params":{}}'
indices tasks create --file ./task.json
cat task.json | indices tasks create
Rules:
- Use at most one of
--body,--file,--stdin. - Do not mix explicit JSON source flags with argument-mode flags.
- If no args/source are provided and stdin is piped, JSON is read from stdin.
After creating a task
Inspect the returned current_state before deciding the next step:
- If
current_stateiswaiting_for_manual_completion, direct the user tohttps://platform.indices.io/tasks/{task_id}. - If
current_stateisnot_ready, the task is still being generated; poll withindices tasks get <task-uuid>. - If
current_stateisready, it can be executed. - If
current_stateisfailed, inspect the failure details before retrying or recreating anything.
List Tasks
indices tasks list
indices --json tasks list
indices tasks list --status ready --limit 20
Notes:
- Valid
--status:not_ready,waiting_for_manual_completion,ready,failed --jsonis a global flag; do not use--output json
Failure Handling
If tasks list, tasks get, or tasks create returns failed to serialize or parse response or reports a missing response field:
- Stop and treat it as CLI/API version drift
- Run
indices --versionandwhich indices - If you are in the CLI repo, retry with
cargo run -- ...or reinstall withcargo install --path . - Do not create more tasks as a workaround until the mismatch is resolved
Get, Retry, Regenerate API
indices tasks get <task-uuid>
indices tasks retry <task-uuid>
indices tasks regenerate-api <task-uuid>
Delete Task
indices tasks delete <task-uuid>
indices tasks delete <task-uuid> --yes