OpenClaw chat media attachments are not reliably imported via ov_import
Problem
When using the local OpenClaw plugin, a user can attach a document in chat and ask the agent to save it to OpenViking. The chat message contains an OpenClaw media attachment path such as:
[media attached: /Users/.../.openclaw/media/inbound/xxx.xlsx (...)]
帮我把这篇文档保存到 openviking
In practice, the model may fail to call the ov_import tool and instead invent an OpenViking upload REST endpoint such as /openviking/v1/files/upload, which returns 404. This makes the user-visible flow look like OpenViking upload is broken even though the plugin already supports local file imports through ov_import.
Expected behavior
When the user explicitly asks to save/upload/import an attached document to OpenViking, OpenClaw should guide the model to call:
ov_import(source=<exact local media attachment path>, kind="resource")
The plugin client should then use the existing local-file path flow:
POST /api/v1/resources/temp_uploadPOST /api/v1/resources
Proposed fix
Strengthen the ov_import tool description and source parameter description so the model recognizes [media attached: /path ...] as a valid local import source and does not invent unsupported upload endpoints. Add a focused unit test that verifies a local media-style .xlsx path is uploaded via temp_upload -> resources.
Scope
This is an OpenClaw plugin tool-guidance fix. It does not change OpenViking resource upload semantics or add new REST APIs.