Workspaces

Reference for client.workspaces in the Future AGI Python and TypeScript SDKs: workspaces.get, workspaces.list.

client.workspaces on fi.Client (Python) and client.workspaces on Client from @future-agi/sdk (TypeScript). The models these methods return are on Account response models; how arguments, pagination, errors and strict mode work is in the overview.

Methods

MethodDescription
workspaces.getReturn a workspace by its identifier.
workspaces.listList workspaces available to the authenticated user.

client.workspaces

workspaces.get

Return a workspace by its identifier.

GET /accounts/workspaces/{workspace_id}/

MCP tool: get_workspace

result = client.workspaces.get("your-workspace-id")
const result = await client.workspaces.get("your-workspace-id");
Signature
client.workspaces.get(
    workspace_id: str,
    *,
    extra_query: dict[str, Any] | None = None,
    options: RequestOptions | None = None,
) -> models.WorkspaceManagementListResult
client.workspaces.get(workspaceId: string, options?: RequestOptions): Promise<models.WorkspaceManagementListResult>

Parameters

workspace_id string Required

Positional argument workspace_id.

Returns

WorkspaceManagementListResult.

workspaces.list

List workspaces available to the authenticated user.

GET /accounts/workspaces/

MCP tool: list_workspaces

result = client.workspaces.list()
const result = await client.workspaces.list();
Signature
client.workspaces.list(
    *,
    extra_query: dict[str, Any] | None = None,
    options: RequestOptions | None = None,
) -> models.WorkspaceManagementListResult
client.workspaces.list(options?: RequestOptions): Promise<models.WorkspaceManagementListResult>

Parameters

This method takes no parameters beyond the per-call options.

Returns

WorkspaceManagementListResult.

Was this page helpful?

Questions & Discussion