Examples¶
Live demos¶
Use list_sessions readonly for a linked badge, or delete_session
for a plain inline reference.
Tool cards¶
list_sessions¶
create_session¶
delete_session¶
Parameter table¶
Parameters
Tool summary¶
Inspect¶
Read state without changing anything.
Tool |
Description |
|---|---|
List active sessions for one server. |
Act¶
Create or modify objects.
Tool |
Description |
|---|---|
Create one session and return the created record. |
Destroy¶
Remove objects; not reversible.
Tool |
Description |
|---|---|
Delete one session from the server. |
Demo module reference¶
The demo objects above, as plain Python API — the targets the
entries’ Python path facts link to:
Synthetic FastMCP tools for the documentation page live demos.
Examples
>>> list_sessions("prod")
['prod:0', 'prod:1']
>>> create_session("demo")["name"]
'demo'
>>> delete_session("old-session")
True
-
fastmcp_demo_tools.list_sessions(server, limit=20)¶fastmcp_demo_tools.list_sessions(server, limit=20)¶
List active sessions for one server.
Examples
>>> list_sessions("prod") ['prod:0', 'prod:1']
-
fastmcp_demo_tools.create_session(name, window_count=1, detached=False)¶fastmcp_demo_tools.create_session(name, window_count=1, detached=False)¶
Create one session and return the created record.
Examples
>>> create_session("demo") {'name': 'demo', 'windows': 1, 'detached': False}