Read Ai Now Session File
Read a text artifact generated inside an AI Now session workdir.
By-id-direct. The requested path must resolve inside the session working directory, so web/remote renderers can load generated cards without exposing arbitrary backend files.
Path Parameters
session_id*Session Id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
path*Path
Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/agent/ai-now/sessions/string/files/read" \ -H "Content-Type: application/json" \ -d '{ "path": "string" }'{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}