/v1/leases/{lease}/taskPOSTtask sends a
follow-up to the same task. A follow-up while a turn runs stops that turn first. The task ends one day after its last turn. The agent gets
the iPhone's name, model, iOS version, language and region (as info reads them).Accept: text/event-stream the response is the turn's AI SDK UI message stream,
unchanged: data: <chunk JSON> events (start, tool-input-available,
tool-output-available, text-delta, finish, ...), then data: [DONE]. A failure
is an error chunk. Closing the stream stops the task. Without that header the
response is one JSON body after the turn ends.ghosthand tunnel url --new-token. The unix socket needs no tokenapplication/jsonrequiredtask must be running and the call follows its turn."open the TikTok likes tab"Min length: 1Ghosthand-Task), to continue it with its history^[A-Za-z0-9_-]{8,64}$task to send a follow-uptitle and detail are for people.curl -X POST "https://ghosthand.dev/macs/studio/v1/leases/42/task" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "prompt": "open the TikTok likes tab", "task": "string" }'
{ "code": "device-leased", "title": "iPhone leased by another client", "status": 409, "detail": "Tommy's iPhone is in use by another lease:\n ses_456 (book a table on OpenTable), acquired 2 min ago, last used 10 s ago (tap)\nDecide first: if that task is still active, give up or tell the user the iPhone is busy." }