MCPcopy Create free account
hub / github.com/ForgeAILab/forge / createTerminalSession

Function createTerminalSession

web/src/api/terminals.ts:19–27  ·  view source on GitHub ↗
(
  taskId: string,
  body: CreateTerminalSessionRequest,
)

Source from the content-addressed store, hash-verified

17}
18
19export function createTerminalSession(
20 taskId: string,
21 body: CreateTerminalSessionRequest,
22): Promise<CreateTerminalSessionResult> {
23 return apiFetch<CreateTerminalSessionResult>(`/tasks/${taskId}/terminals`, {
24 method: 'POST',
25 body: JSON.stringify(body),
26 })
27}
28
29export function listTerminalSessions(
30 taskId: string,

Callers 1

handleStartFunction · 0.90

Calls 1

apiFetchFunction · 0.90

Tested by

no test coverage detected