Retrieve an Agent step screenshot
tinyfish.web.agent.step.screenshotRetrieve the JPEG screenshot captured for one step of a run that requested screenshots.
- Price
- freePelo preço do provedor
- Success rate
- 100%Last 30 days · 21 calls
- Latency p50
- 179 msp95 321 ms
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/tinyfish.web.agent.step.screenshotPreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
run_id | string | Obrigatório | ||
step_id | string | Obrigatório | ||
- Parâmetros de caminho
run_idstringObrigatóriostep_idstringObrigatório
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tinyfish.web.agent.step.screenshot' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tinyfish.web.agent.step.screenshot",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tinyfish.web.agent.step.screenshot", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.