anthropic.getSession gets current status, usage, resources, and outcome state for a session.
Example
automations/anthropic-get-session.automation.ts
Inputs
RequiressessionId. Inputs use public camelCase names and accept signals.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Gets current status, usage, resources, and outcome state for a session.
anthropic.getSession gets current status, usage, resources, and outcome state for a session.
import { automation, onInvocation, withPrerequisites } from "automate.ax"
import { anthropic } from "automate.ax/anthropic"
export default automation("Get session", () => {
withPrerequisites(onInvocation(), () => {
anthropic.getSession({ sessionId: "session-id" })
})
})
sessionId. Inputs use public camelCase names and accept signals.