Changelog
All notable changes to the Tabstack SDK and API, newest first.
Packages:
Section titled “Packages:”@tabstack/sdk(TypeScript)tabstack(Python)
Subscribe to the RSS feed
2.9.0 - 2026-11-09 · AddedDocs
task:trace_context on /research. The /research stream now opens with a task:trace_context event, the same event /automate already sends. Its data holds only traceId, a W3C 32-character lowercase hex trace ID. It is the same value as the X-Trace-Id response header. Log it with the request and quote it when you contact support.
Research usage on complete. The research complete event now carries usage.actions, the number of billable actions the call used. Research charges one action per search iteration. Multiply actions by the per-action rate for the mode on the pricing page to get the cost of the call. Calls that end in an error event are not charged.
import Tabstack from "@tabstack/sdk";
const client = new Tabstack({ apiKey: process.env.TABSTACK_API_KEY });
try { const stream = await client.agent.research({ query: "What changed in the latest Node.js LTS release?", mode: "fast", });
for await (const event of stream) { if (event.event === "task:trace_context") { console.log("Trace ID:", event.data.traceId); } if (event.event === "complete") { console.log("Actions billed:", event.data.usage?.actions ?? "not reported"); } if (event.event === "error") { console.error("Research failed:", event.data.error.message); } }} catch (err) { console.error("Request failed:", err);}In Python, read event.data.trace_id and event.data.usage.actions. usage is optional in both SDKs, so guard for it before reading actions.
- Research guide: new Cost and trace ID section.
automateInput: unknown request IDs, and request IDs that belong to another organization, return410 Gone, the same as expired or already-answered requests.
2.8.6 - 2026-08-11 · Docs
This release contains no API or behavior changes. It is a TypeScript-only release; the Python SDK has no 2.8.6.
- TypeScript SDK: the
nocacheparameter description onagent.research()now reads “Bypass cache and force fresh research.”
2.8.5 - 2026-08-11 · Docs
This release contains no API or behavior changes.
- Python SDK: the
nocacheparameter description onagent.research()now reads “Bypass cache and force fresh research.” - TypeScript SDK: release pipeline change and a development dependency update only.
2.8.4 - 2026-08-11 · Docs
This release contains no API or behavior changes.
- TypeScript SDK: the
metadataparameter description onextract.markdown()now reads “Include Open Graph and HTML metadata as a separate field in the response.” - Python SDK: release pipeline change only.
2.8.3 - 2026-08-11 · Docs
This release contains no API or behavior changes.
- Python SDK: the
metadataparameter description onextract.markdown()now reads “Include Open Graph and HTML metadata as a separate field in the response.” - TypeScript SDK: code formatting changes from SDK regeneration only.
2.8.2 - 2026-08-11 · Changed
This release contains no user-facing changes. Both SDKs reconcile their release branches. The TypeScript SDK also removes leftover files from its repository that are not part of the published @tabstack/sdk package.
2.8.1 - 2026-08-10 · Changed
This release contains no user-facing changes. It syncs release files between branches in both SDKs.
2.8.0 - 2026-08-10 · Changed
This release contains no user-facing changes. It updates the SDK release pipeline in both SDKs.
2.7.1 - 2026-08-10 · Changed
This release contains no user-facing changes. It updates the SDK release pipeline only.
tabstack 2.7.1 is on PyPI. The TypeScript SDK has a 2.7.1 tag on GitHub, but @tabstack/sdk 2.7.1 was not published to npm. TypeScript users go from 2.7.0 to 2.8.0.
2.7.0 - 2026-08-10 · AddedFixed
Action firewall controls on /automate. Two new optional parameters control the action firewall, which blocks the agent from filling and submitting form fields without approval. trusted_hostnames takes a list of hostnames where the firewall is bypassed for fills and submissions. unsafe_mode: true turns the firewall off entirely. On a bypassed host, prompt injection in page content can drive the agent to submit your data, including credentials and personal information, so use them only for sites you fully trust. See the Automate guide.
Content scope on /extract/markdown. The new content parameter sets how much of the page you get back. "main" (the default) returns the main article content. "full" returns the whole page, including navigation, footer, and links.
Favicon in markdown metadata. The /extract/markdown metadata object now includes favicon, the page’s favicon URL resolved to an absolute URL.
import Tabstack from "@tabstack/sdk";
const client = new Tabstack({ apiKey: process.env.TABSTACK_API_KEY });
try { const result = await client.extract.markdown({ url: "https://example.com", content: "full", metadata: true, });
console.log(result.content); console.log("Favicon:", result.metadata?.favicon ?? "not found");} catch (err) { console.error("Request failed:", err);}In Python, pass content="full" to client.extract.markdown() and trusted_hostnames=[...] or unsafe_mode=True to client.agent.automate().
page_title and favicon auto-fill in extract.json. If your json_schema includes a page_title or favicon property, those fields are filled from page metadata when the model leaves them empty.
TypeScript SDK fixes.
- Requests to operations that take a body now send the
content-typeheader even when you omit an optional body. - Debug logs now redact
api-keyandx-api-keyheaders, along withauthorizationand cookie headers.
2.6.1 - 2026-05-05
AddedDocs
Endpoint-specific timeouts. /automate and /research now apply a 600 s (10 min) default timeout at the SDK level, in place of the 60 s client default. On these streaming endpoints the timeout does not cap the stream’s full length: in TypeScript it covers opening the stream, and in Python it is the longest gap allowed between chunks. The endpoint default applies only when you haven’t set a timeout on the client; an explicit client timeout, longer or shorter, still wins. (/extract/markdown defaults to 180 s and /extract/json and /generate/json to 300 s on the same terms.)
task:trace_context event. The /automate stream now emits a task:trace_context event as the first event after task acceptance (before task:started). Its payload carries traceId, a W3C 32-character hex trace ID you can use to deep-link into Cloud Trace, Cloud Logging, or your own distributed tracing UI for the run.
for await (const event of stream) { if (event.event === "task:trace_context") { console.log("Trace ID:", event.data.traceId); }}Custom headers via environment variable. Set TABSTACK_CUSTOM_HEADERS to a newline-separated list of Key: value pairs to inject default headers into every request without code changes.
TABSTACK_CUSTOM_HEADERS="X-My-Header: valueX-Another: value2"Scroll browser action. Automation agents can now scroll pages during task execution. Appears as an agent:action event with action: "scroll".
extract.jsonnull behavior clarified: if a field in your schema cannot be populated from the page, the response returnsnullfor that field. The call does not fail.- Quickstart standardized to
TABSTACK_API_KEYas the environment variable name.
2.6.0 - 2026-04-24
Changed
AutomateEvent is now a fully typed discriminated union. complete, error, and done are first-class members of the union. Handle them with explicit case branches. The prior pattern of catching them in a default branch with manual casts is no longer necessary and should be removed.
for await (const event of stream) { switch (event.event) { case "task:completed": console.log(event.data.finalAnswer); break; case "complete": console.log(`Done in ${event.data.stats.durationMs}ms`); if (!event.data.success) console.error(event.data.error?.message); break; case "done": break; case "error": console.error(event.data.error.message); break; }}complete event data fields:
finalAnswer: string | null- the agent’s resultstats: { durationMs, iterations, actions, startTime, endTime }- run metricssuccess: booleanerror?: { code, message }- present when the agent aborted
error event data fields:
error: { code: string, message: string, timestamp: string }-timestampis ISO-8601success: false
2.5.0 - 2026-04-22 · Fixed
/research default mode is fast. The SDK documentation incorrectly listed balanced as the default. The actual default is fast. If you need balanced mode, pass mode: 'balanced' explicitly.
2.4.0 - 2026-04-09 · Added
Interactive mode. client.agent.automateInput(requestId, { fields }) added. When an automation task emits an interactive:form_data:request event and needs human-supplied field values to continue, call this method with the requestId from the event and the field values. Pass cancelled: true to abort the interaction.
for await (const event of stream) { if (event.event === "interactive:form_data:request") { const data = event.data as { requestId: string }; const response = await client.agent.automateInput(data.requestId, { fields: [{ ref: "email", value: "user@example.com" }], }); }}See the interactive mode guide for the full pattern.
geo_target added to extract.json, extract.markdown, and generate.json. Pass an ISO 3166-1 alpha-2 country code to proxy the request through a matching geo. (Was already available on /automate since 2.1.0.)
const data = await client.extract.json({ url: "https://example.com/pricing", json_schema: { type: "object", properties: { price: { type: "string" } } }, geo_target: { country: "GB" },});2.3.0 - 2026-03-12 · Added
effort parameter added to extract.json, extract.markdown, and generate.json. Controls the speed vs. capability tradeoff:
| Value | Time | Use when |
|---|---|---|
'min' | 1-5 s | Static pages, fastest possible |
'standard' | 3-15 s | Default, balanced reliability |
'max' | 15-60 s | JS-heavy SPAs, complex rendering |
const data = await client.extract.json({ url: "https://example.com", json_schema: { type: "object", properties: { title: { type: "string" } } }, effort: "max", // full browser rendering});2.2.0 - 2026-02-11 · FixedChanged
- Memory leak with abort signals in the HTTP client resolved. Relevant if you cancel in-flight requests.
- Abort listener was removed too early in some edge cases. Fixed.
- MCP server package renamed. Update your MCP server configuration if you use the Tabstack MCP server directly.
2.1.0 - 2026-01-30 · Added
/research endpoint. client.agent.research({ query, mode?, fetch_timeout?, nocache? }) for multi-source autonomous web research with cited answers. Always streams ResearchEvent via SSE.
const stream = await client.agent.research({ query: "What are the top TypeScript ORM libraries in 2025?", mode: "fast", // 'fast' (default) | 'balanced'});
for await (const event of stream) { if (event.event === "complete") { console.log(event.data.report); console.log(`Sources: ${event.data.metadata.totalPagesAnalyzed}`); } if (event.event === "done") break;}2.0.0 - 2026-01-16
BreakingAdded
MCP server deprecated tool schemes removed. Code mode is the only supported scheme going forward.
- MCP server:
intentparameter added to the execute tool. - SDK package renamed to
@tabstack/sdk.