import { getClient } from "@/api/AxiosClient"; import { TaskApiResponse } from "@/api/types"; import { AutoResizingTextarea } from "@/components/AutoResizingTextarea/AutoResizingTextarea"; import { KeyValueInput } from "@/components/KeyValueInput"; import { Input } from "@/components/ui/input"; import { Skeleton } from "@/components/ui/skeleton"; import { Switch } from "@/components/ui/switch"; import { useCredentialGetter } from "@/hooks/useCredentialGetter"; import { CodeEditor } from "@/routes/workflows/components/CodeEditor"; import { MAX_SCREENSHOT_SCROLLING_TIMES_DEFAULT } from "@/routes/workflows/editor/nodes/Taskv2Node/types"; import { useQuery } from "@tanstack/react-query"; import { useParams } from "react-router-dom"; function TaskParameters() { const { taskId } = useParams(); const credentialGetter = useCredentialGetter(); const { data: task, isLoading: taskIsLoading, isError: taskIsError, } = useQuery({ queryKey: ["task", taskId], queryFn: async () => { const client = await getClient(credentialGetter); return client.get(`/tasks/${taskId}`).then((response) => response.data); }, }); if (taskIsLoading) { return (
); } if (taskIsError || !task) { return
Error loading parameters
; } return (

URL

The starting URL for the task

Navigation Goal

Where should Skyvern go and what should Skyvern do?

Navigation Payload

Specify important parameters, routes, or states

Data Extraction Goal

What outputs are you looking to get?

Data Schema

Specify the output format in JSON

Extra HTTP Headers

Specify some self defined HTTP requests headers in Dict format

{}} />

Webhook Callback URL

The URL of a webhook endpoint to send the extracted information

Max Scrolling Screenshots

The maximum number of times to scroll the page

Include Action History

Include the action history in the completion verification

); } export { TaskParameters };