How to access Actor input inside route handlers?

Hello, I am having trouble figuring out how to do the following, and cannot find anything in the docs:

Suppose I want to use variables provided in my input_schema, ex:

const {
    startUrls = [
        'https://enzosbbq.com/'
    ],
    proxyConfig = {
        useApifyProxy: true
    },
    maxRequestsPerCrawl = 100,
    navigationTimeoutSecs = 30,
} = await Actor.getInput<Input>() ?? {} as Input;


Inside of my route handlers, ex

export const router = createPlaywrightRouter()

router.addHandler("test-handler", async (ctx) => {
  // TODO how do I access input variables here?
})


How can I access input variables inside of my route handlers?
Was this page helpful?