Skip to content

Commit 8651f32

Browse files
nikosbosseclaude
andauthored
feat: display input/context artifact IDs in list_session_tasks (#251)
* feat: display input/context artifact IDs in list_session_tasks Show input_artifact_ids and context_artifact_ids alongside the existing output artifact when listing tasks in a session. Also rename the field from artifact_id to output_artifact_id to match the engine API rename. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: use full field names for artifact IDs in output output_artifact_id, input_artifact_ids, context_artifact_ids instead of abbreviated labels. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c70fc0c commit 8651f32

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

everyrow-mcp/src/everyrow_mcp/tools.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,12 +1346,24 @@ async def everyrow_list_session_tasks(
13461346

13471347
lines = [f"Found {len(tasks)} task(s) in session {params.session_id}:\n"]
13481348
for t in tasks:
1349-
artifact = (
1350-
f" | output_artifact: {t['artifact_id']}" if t.get("artifact_id") else ""
1349+
output = (
1350+
f" | output_artifact_id: {t['output_artifact_id']}"
1351+
if t.get("output_artifact_id")
1352+
else ""
1353+
)
1354+
inputs = (
1355+
f" | input_artifact_ids: {t['input_artifact_ids']}"
1356+
if t.get("input_artifact_ids")
1357+
else ""
1358+
)
1359+
context = (
1360+
f" | context_artifact_ids: {t['context_artifact_ids']}"
1361+
if t.get("context_artifact_ids")
1362+
else ""
13511363
)
13521364
lines.append(
13531365
f"- **{t['task_type']}** (task_id: {t['task_id']})\n"
1354-
f" Status: {t['status']} | Created: {t['created_at']}{artifact}"
1366+
f" Status: {t['status']} | Created: {t['created_at']}{output}{inputs}{context}"
13551367
)
13561368

13571369
return [TextContent(type="text", text="\n".join(lines))]

0 commit comments

Comments
 (0)